home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-25 | 381.5 KB | [ONLN/HLX2] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Oct 13 13:53:50 1994, modified Tue Oct 25 04:29:10 1994, creator 'HLX2', type 'ONLN', 380747 bytes "Palette Manager" , at 0x5cfcb 9603 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [ONLN] |
macFileCreator | [HLX2] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |..Palett|e Manage|
|00000010| 72 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 05 cf 4b 00 | 00 25 83 aa c3 24 ae aa |......K.|.%...$..|
|00000060| d2 72 56 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.rV.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 66 cd 00 00 |........|....f...|
|00000080| 0d 53 65 65 64 20 4e 6f | 74 65 0d 0d 50 61 6c 65 |.Seed No|te..Pale|
|00000090| 74 74 65 20 4d 61 6e 61 | 67 65 72 0d 0d 0d 49 53 |tte Mana|ger...IS|
|000000a0| 42 4e 20 30 2d 32 30 31 | 2d 78 78 78 78 78 2d 78 |BN 0-201|-xxxxx-x|
|000000b0| 0d 31 20 32 20 33 20 34 | 20 35 20 36 20 37 20 38 |.1 2 3 4| 5 6 7 8|
|000000c0| 20 39 2d 4d 55 2d 39 36 | 39 35 39 34 39 33 39 32 | 9-MU-96|95949392|
|000000d0| 0d 46 69 72 73 74 20 50 | 72 69 6e 74 69 6e 67 2c |.First P|rinting,|
|000000e0| 20 4a 75 6e 65 20 31 39 | 39 33 0d 0d 0d 0d 54 68 | June 19|93....Th|
|000000f0| 65 20 70 61 70 65 72 20 | 75 73 65 64 20 69 6e 20 |e paper |used in |
|00000100| 74 68 69 73 20 62 6f 6f | 6b 20 6d 65 65 74 73 20 |this boo|k meets |
|00000110| 74 68 65 20 45 50 41 20 | 73 74 61 6e 64 61 72 64 |the EPA |standard|
|00000120| 73 20 66 6f 72 20 72 65 | 63 79 63 6c 65 64 20 66 |s for re|cycled f|
|00000130| 69 62 65 72 2e 0d 0d 0d | f0 09 41 70 70 6c 65 20 |iber....|..Apple |
|00000140| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d a9 |Computer|, Inc...|
|00000150| 20 3c 24 79 65 61 72 3e | 2c 20 41 70 70 6c 65 20 | <$year>|, Apple |
|00000160| 43 6f 6d 70 75 74 65 72 | 2c 20 49 6e 63 2e 0d 41 |Computer|, Inc..A|
|00000170| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000180| 65 64 2e 20 0d 4e 6f 20 | 70 61 72 74 20 6f 66 20 |ed. .No |part of |
|00000190| 74 68 69 73 20 70 75 62 | 6c 69 63 61 74 69 6f 6e |this pub|lication|
|000001a0| 20 6d 61 79 20 62 65 20 | 72 65 70 72 6f 64 75 63 | may be |reproduc|
|000001b0| 65 64 2c 20 73 74 6f 72 | 65 64 20 69 6e 20 61 20 |ed, stor|ed in a |
|000001c0| 72 65 74 72 69 65 76 61 | 6c 20 73 79 73 74 65 6d |retrieva|l system|
|000001d0| 2c 20 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 65 64 |, or tra|nsmitted|
|000001e0| 2c 20 69 6e 20 61 6e 79 | 20 66 6f 72 6d 20 6f 72 |, in any| form or|
|000001f0| 20 62 79 20 61 6e 79 20 | 6d 65 61 6e 73 2c 20 6d | by any |means, m|
|00000200| 65 63 68 61 6e 69 63 61 | 6c 2c 20 65 6c 65 63 74 |echanica|l, elect|
|00000210| 72 6f 6e 69 63 2c 20 70 | 68 6f 74 6f 63 6f 70 79 |ronic, p|hotocopy|
|00000220| 69 6e 67 2c 20 72 65 63 | 6f 72 64 69 6e 67 2c 20 |ing, rec|ording, |
|00000230| 6f 72 20 6f 74 68 65 72 | 77 69 73 65 2c 20 77 69 |or other|wise, wi|
|00000240| 74 68 6f 75 74 20 70 72 | 69 6f 72 20 77 72 69 74 |thout pr|ior writ|
|00000250| 74 65 6e 20 70 65 72 6d | 69 73 73 69 6f 6e 20 6f |ten perm|ission o|
|00000260| 66 20 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |f Apple |Computer|
|00000270| 2c 20 49 6e 63 2e 20 50 | 72 69 6e 74 65 64 20 69 |, Inc. P|rinted i|
|00000280| 6e 20 74 68 65 20 55 6e | 69 74 65 64 20 53 74 61 |n the Un|ited Sta|
|00000290| 74 65 73 20 6f 66 20 41 | 6d 65 72 69 63 61 2e 0d |tes of A|merica..|
|000002a0| 4e 6f 20 6c 69 63 65 6e | 73 65 73 2c 20 65 78 70 |No licen|ses, exp|
|000002b0| 72 65 73 73 20 6f 72 20 | 69 6d 70 6c 69 65 64 2c |ress or |implied,|
|000002c0| 20 61 72 65 20 67 72 61 | 6e 74 65 64 20 77 69 74 | are gra|nted wit|
|000002d0| 68 20 72 65 73 70 65 63 | 74 20 74 6f 20 61 6e 79 |h respec|t to any|
|000002e0| 20 6f 66 20 74 68 65 20 | 74 65 63 68 6e 6f 6c 6f | of the |technolo|
|000002f0| 67 79 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |gy descr|ibed in |
|00000300| 74 68 69 73 20 62 6f 6f | 6b 2e 20 41 70 70 6c 65 |this boo|k. Apple|
|00000310| 20 72 65 74 61 69 6e 73 | 20 61 6c 6c 20 69 6e 74 | retains| all int|
|00000320| 65 6c 6c 65 63 74 75 61 | 6c 20 70 72 6f 70 65 72 |ellectua|l proper|
|00000330| 74 79 20 72 69 67 68 74 | 73 20 61 73 73 6f 63 69 |ty right|s associ|
|00000340| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 74 65 |ated wit|h the te|
|00000350| 63 68 6e 6f 6c 6f 67 79 | 20 64 65 73 63 72 69 62 |chnology| describ|
|00000360| 65 64 20 69 6e 20 74 68 | 69 73 20 62 6f 6f 6b 2e |ed in th|is book.|
|00000370| 20 54 68 69 73 20 62 6f | 6f 6b 20 69 73 20 69 6e | This bo|ok is in|
|00000380| 74 65 6e 64 65 64 20 74 | 6f 20 61 73 73 69 73 74 |tended t|o assist|
|00000390| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 64 65 76 | applica|tion dev|
|000003a0| 65 6c 6f 70 65 72 73 20 | 74 6f 20 64 65 76 65 6c |elopers |to devel|
|000003b0| 6f 70 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |op appli|cations |
|000003c0| 6f 6e 6c 79 20 66 6f 72 | 20 41 70 70 6c 65 20 4d |only for| Apple M|
|000003d0| 61 63 69 6e 74 6f 73 68 | 20 63 6f 6d 70 75 74 65 |acintosh| compute|
|000003e0| 72 73 2e 0d 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |rs..Appl|e Comput|
|000003f0| 65 72 2c 20 49 6e 63 2e | 0d 32 30 35 32 35 20 4d |er, Inc.|.20525 M|
|00000400| 61 72 69 61 6e 69 20 41 | 76 65 6e 75 65 0d 43 75 |ariani A|venue.Cu|
|00000410| 70 65 72 74 69 6e 6f 2c | 20 43 41 20 39 35 30 31 |pertino,| CA 9501|
|00000420| 34 0d 34 30 38 2d 39 39 | 36 2d 31 30 31 30 0d 41 |4.408-99|6-1010.A|
|00000430| 70 70 6c 65 2c 20 74 68 | 65 20 41 70 70 6c 65 20 |pple, th|e Apple |
|00000440| 6c 6f 67 6f 2c 20 41 50 | 44 41 2c 20 41 70 70 6c |logo, AP|DA, Appl|
|00000450| 65 4c 69 6e 6b 2c 20 41 | 70 70 6c 65 54 61 6c 6b |eLink, A|ppleTalk|
|00000460| 2c 20 49 6d 61 67 65 57 | 72 69 74 65 72 2c 20 4c |, ImageW|riter, L|
|00000470| 61 73 65 72 57 72 69 74 | 65 72 2c 20 4d 61 63 69 |aserWrit|er, Maci|
|00000480| 6e 74 6f 73 68 2c 20 61 | 6e 64 20 53 74 79 6c 65 |ntosh, a|nd Style|
|00000490| 57 72 69 74 65 72 20 61 | 72 65 20 74 72 61 64 65 |Writer a|re trade|
|000004a0| 6d 61 72 6b 73 20 6f 66 | 20 41 70 70 6c 65 20 43 |marks of| Apple C|
|000004b0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 2c 20 72 |omputer,| Inc., r|
|000004c0| 65 67 69 73 74 65 72 65 | 64 20 69 6e 20 74 68 65 |egistere|d in the|
|000004d0| 20 55 6e 69 74 65 64 20 | 53 74 61 74 65 73 20 61 | United |States a|
|000004e0| 6e 64 20 6f 74 68 65 72 | 20 63 6f 75 6e 74 72 69 |nd other| countri|
|000004f0| 65 73 2e 0d 43 6f 6c 6f | 72 53 79 6e 63 2c 20 46 |es..Colo|rSync, F|
|00000500| 69 6e 64 65 72 2c 20 50 | 6f 77 65 72 42 6f 6f 6b |inder, P|owerBook|
|00000510| 2c 20 51 75 69 63 6b 44 | 72 61 77 2c 20 51 75 69 |, QuickD|raw, Qui|
|00000520| 63 6b 54 69 6d 65 2c 20 | 52 65 73 45 64 69 74 2c |ckTime, |ResEdit,|
|00000530| 20 61 6e 64 20 53 79 73 | 74 65 6d 20 37 20 61 72 | and Sys|tem 7 ar|
|00000540| 65 20 74 72 61 64 65 6d | 61 72 6b 73 20 6f 66 20 |e tradem|arks of |
|00000550| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|00000560| 49 6e 63 2e 0d 41 64 6f | 62 65 20 49 6c 6c 75 73 |Inc..Ado|be Illus|
|00000570| 74 72 61 74 6f 72 20 61 | 6e 64 20 50 6f 73 74 53 |trator a|nd PostS|
|00000580| 63 72 69 70 74 20 61 72 | 65 20 74 72 61 64 65 6d |cript ar|e tradem|
|00000590| 61 72 6b 73 20 6f 66 20 | 41 64 6f 62 65 20 53 79 |arks of |Adobe Sy|
|000005a0| 73 74 65 6d 73 20 49 6e | 63 6f 72 70 6f 72 61 74 |stems In|corporat|
|000005b0| 65 64 2c 20 77 68 69 63 | 68 20 6d 61 79 20 62 65 |ed, whic|h may be|
|000005c0| 20 72 65 67 69 73 74 65 | 72 65 64 20 69 6e 20 63 | registe|red in c|
|000005d0| 65 72 74 61 69 6e 20 6a | 75 72 69 73 64 69 63 74 |ertain j|urisdict|
|000005e0| 69 6f 6e 73 2e 0d 41 47 | 46 41 20 69 73 20 61 20 |ions..AG|FA is a |
|000005f0| 74 72 61 64 65 6d 61 72 | 6b 20 6f 66 20 41 67 66 |trademar|k of Agf|
|00000600| 61 2d 47 65 76 61 65 72 | 74 2e 0d 41 6d 65 72 69 |a-Gevaer|t..Ameri|
|00000610| 63 61 20 4f 6e 6c 69 6e | 65 20 69 73 20 61 20 73 |ca Onlin|e is a s|
|00000620| 65 72 76 69 63 65 20 6d | 61 72 6b 20 6f 66 20 51 |ervice m|ark of Q|
|00000630| 75 61 6e 74 75 6d 20 43 | 6f 6d 70 75 74 65 72 20 |uantum C|omputer |
|00000640| 53 65 72 76 69 63 65 73 | 2c 20 49 6e 63 2e 0d 43 |Services|, Inc..C|
|00000650| 6c 61 73 73 69 63 20 69 | 73 20 61 20 72 65 67 69 |lassic i|s a regi|
|00000660| 73 74 65 72 65 64 20 74 | 72 61 64 65 6d 61 72 6b |stered t|rademark|
|00000670| 20 6c 69 63 65 6e 73 65 | 64 20 74 6f 20 41 70 70 | license|d to App|
|00000680| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000690| 2e 0d 43 6f 6d 70 75 53 | 65 72 76 65 20 69 73 20 |..CompuS|erve is |
|000006a0| 61 20 72 65 67 69 73 74 | 65 72 65 64 20 73 65 72 |a regist|ered ser|
|000006b0| 76 69 63 65 20 6d 61 72 | 6b 20 6f 66 20 43 6f 6d |vice mar|k of Com|
|000006c0| 70 75 53 65 72 76 65 2c | 20 49 6e 63 2e 0d 46 72 |puServe,| Inc..Fr|
|000006d0| 61 6d 65 4d 61 6b 65 72 | 20 69 73 20 61 20 72 65 |ameMaker| is a re|
|000006e0| 67 69 73 74 65 72 65 64 | 20 74 72 61 64 65 6d 61 |gistered| tradema|
|000006f0| 72 6b 20 6f 66 20 46 72 | 61 6d 65 20 54 65 63 68 |rk of Fr|ame Tech|
|00000700| 6e 6f 6c 6f 67 79 20 43 | 6f 72 70 6f 72 61 74 69 |nology C|orporati|
|00000710| 6f 6e 2e 0d 48 65 6c 76 | 65 74 69 63 61 20 61 6e |on..Helv|etica an|
|00000720| 64 20 50 61 6c 61 74 69 | 6e 6f 20 61 72 65 20 72 |d Palati|no are r|
|00000730| 65 67 69 73 74 65 72 65 | 64 20 74 72 61 64 65 6d |egistere|d tradem|
|00000740| 61 72 6b 73 20 6f 66 20 | 4c 69 6e 6f 74 79 70 65 |arks of |Linotype|
|00000750| 20 43 6f 6d 70 61 6e 79 | 2e 0d 49 6e 74 65 72 6e | Company|..Intern|
|00000760| 65 74 20 69 73 20 61 20 | 74 72 61 64 65 6d 61 72 |et is a |trademar|
|00000770| 6b 20 6f 66 20 44 69 67 | 69 74 61 6c 20 45 71 75 |k of Dig|ital Equ|
|00000780| 69 70 6d 65 6e 74 20 43 | 6f 72 70 6f 72 61 74 69 |ipment C|orporati|
|00000790| 6f 6e 2e 0d 49 54 43 20 | 5a 61 70 66 20 44 69 6e |on..ITC |Zapf Din|
|000007a0| 67 62 61 74 73 20 69 73 | 20 61 20 72 65 67 69 73 |gbats is| a regis|
|000007b0| 74 65 72 65 64 20 74 72 | 61 64 65 6d 61 72 6b 20 |tered tr|ademark |
|000007c0| 6f 66 20 49 6e 74 65 72 | 6e 61 74 69 6f 6e 61 6c |of Inter|national|
|000007d0| 20 54 79 70 65 66 61 63 | 65 20 43 6f 72 70 6f 72 | Typefac|e Corpor|
|000007e0| 61 74 69 6f 6e 2e 0d 4d | 61 63 50 61 69 6e 74 20 |ation..M|acPaint |
|000007f0| 69 73 20 61 20 72 65 67 | 69 73 74 65 72 65 64 20 |is a reg|istered |
|00000800| 74 72 61 64 65 6d 61 72 | 6b 20 6f 66 20 43 6c 61 |trademar|k of Cla|
|00000810| 72 69 73 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2e |ris Corp|oration.|
|00000820| 0d 4e 75 42 75 73 20 69 | 73 20 61 20 74 72 61 64 |.NuBus i|s a trad|
|00000830| 65 6d 61 72 6b 20 6f 66 | 20 54 65 78 61 73 20 49 |emark of| Texas I|
|00000840| 6e 73 74 72 75 6d 65 6e | 74 73 2e 0d 4d 6f 74 6f |nstrumen|ts..Moto|
|00000850| 72 6f 6c 61 20 69 73 20 | 61 20 72 65 67 69 73 74 |rola is |a regist|
|00000860| 65 72 65 64 20 74 72 61 | 64 65 6d 61 72 6b 20 6f |ered tra|demark o|
|00000870| 66 20 4d 6f 74 6f 72 6f | 6c 61 20 43 6f 72 70 6f |f Motoro|la Corpo|
|00000880| 72 61 74 69 6f 6e 2e 0d | 53 69 6d 75 6c 74 61 6e |ration..|Simultan|
|00000890| 65 6f 75 73 6c 79 20 70 | 75 62 6c 69 73 68 65 64 |eously p|ublished|
|000008a0| 20 69 6e 20 74 68 65 20 | 55 6e 69 74 65 64 20 53 | in the |United S|
|000008b0| 74 61 74 65 73 20 61 6e | 64 20 43 61 6e 61 64 61 |tates an|d Canada|
|000008c0| 2e 0d 4c 49 4d 49 54 45 | 44 20 57 41 52 52 41 4e |..LIMITE|D WARRAN|
|000008d0| 54 59 20 4f 4e 20 4d 45 | 44 49 41 20 41 4e 44 20 |TY ON ME|DIA AND |
|000008e0| 52 45 50 4c 41 43 45 4d | 45 4e 54 0d 41 4c 4c 20 |REPLACEM|ENT.ALL |
|000008f0| 49 4d 50 4c 49 45 44 20 | 57 41 52 52 41 4e 54 49 |IMPLIED |WARRANTI|
|00000900| 45 53 20 4f 4e 20 54 48 | 49 53 20 4d 41 4e 55 41 |ES ON TH|IS MANUA|
|00000910| 4c 2c 20 49 4e 43 4c 55 | 44 49 4e 47 20 49 4d 50 |L, INCLU|DING IMP|
|00000920| 4c 49 45 44 20 57 41 52 | 52 41 4e 54 49 45 53 20 |LIED WAR|RANTIES |
|00000930| 4f 46 20 4d 45 52 43 48 | 41 4e 54 41 42 49 4c 49 |OF MERCH|ANTABILI|
|00000940| 54 59 20 41 4e 44 20 46 | 49 54 4e 45 53 53 20 46 |TY AND F|ITNESS F|
|00000950| 4f 52 20 41 20 50 41 52 | 54 49 43 55 4c 41 52 20 |OR A PAR|TICULAR |
|00000960| 50 55 52 50 4f 53 45 2c | 20 41 52 45 20 4c 49 4d |PURPOSE,| ARE LIM|
|00000970| 49 54 45 44 20 49 4e 20 | 44 55 52 41 54 49 4f 4e |ITED IN |DURATION|
|00000980| 20 54 4f 20 4e 49 4e 45 | 54 59 20 28 39 30 29 20 | TO NINE|TY (90) |
|00000990| 44 41 59 53 20 46 52 4f | 4d 20 54 48 45 20 44 41 |DAYS FRO|M THE DA|
|000009a0| 54 45 20 4f 46 20 54 48 | 45 20 4f 52 49 47 49 4e |TE OF TH|E ORIGIN|
|000009b0| 41 4c 20 52 45 54 41 49 | 4c 20 50 55 52 43 48 41 |AL RETAI|L PURCHA|
|000009c0| 53 45 20 4f 46 20 54 48 | 49 53 20 50 52 4f 44 55 |SE OF TH|IS PRODU|
|000009d0| 43 54 2e 0d 45 76 65 6e | 20 74 68 6f 75 67 68 20 |CT..Even| though |
|000009e0| 41 70 70 6c 65 20 68 61 | 73 20 72 65 76 69 65 77 |Apple ha|s review|
|000009f0| 65 64 20 74 68 69 73 20 | 6d 61 6e 75 61 6c 2c 20 |ed this |manual, |
|00000a00| 41 50 50 4c 45 20 4d 41 | 4b 45 53 20 4e 4f 20 57 |APPLE MA|KES NO W|
|00000a10| 41 52 52 41 4e 54 59 20 | 4f 52 20 52 45 50 52 45 |ARRANTY |OR REPRE|
|00000a20| 53 45 4e 54 41 54 49 4f | 4e 2c 20 45 49 54 48 45 |SENTATIO|N, EITHE|
|00000a30| 52 20 45 58 50 52 45 53 | 53 20 4f 52 20 49 4d 50 |R EXPRES|S OR IMP|
|00000a40| 4c 49 45 44 2c 20 57 49 | 54 48 20 52 45 53 50 45 |LIED, WI|TH RESPE|
|00000a50| 43 54 20 54 4f 20 54 48 | 49 53 20 4d 41 4e 55 41 |CT TO TH|IS MANUA|
|00000a60| 4c 2c 20 49 54 53 20 51 | 55 41 4c 49 54 59 2c 20 |L, ITS Q|UALITY, |
|00000a70| 41 43 43 55 52 41 43 59 | 2c 20 4d 45 52 43 48 41 |ACCURACY|, MERCHA|
|00000a80| 4e 54 41 42 49 4c 49 54 | 59 2c 20 4f 52 20 46 49 |NTABILIT|Y, OR FI|
|00000a90| 54 4e 45 53 53 20 46 4f | 52 20 41 20 50 41 52 54 |TNESS FO|R A PART|
|00000aa0| 49 43 55 4c 41 52 20 50 | 55 52 50 4f 53 45 2e 20 |ICULAR P|URPOSE. |
|00000ab0| 41 53 20 41 20 52 45 53 | 55 4c 54 2c 20 54 48 49 |AS A RES|ULT, THI|
|00000ac0| 53 20 4d 41 4e 55 41 4c | 20 49 53 20 53 4f 4c 44 |S MANUAL| IS SOLD|
|00000ad0| 20 d2 41 53 20 49 53 2c | d3 20 41 4e 44 20 59 4f | .AS IS,|. AND YO|
|00000ae0| 55 2c 20 54 48 45 20 50 | 55 52 43 48 41 53 45 52 |U, THE P|URCHASER|
|00000af0| 2c 20 41 52 45 20 41 53 | 53 55 4d 49 4e 47 20 54 |, ARE AS|SUMING T|
|00000b00| 48 45 20 45 4e 54 49 52 | 45 20 52 49 53 4b 20 41 |HE ENTIR|E RISK A|
|00000b10| 53 20 54 4f 20 49 54 53 | 20 51 55 41 4c 49 54 59 |S TO ITS| QUALITY|
|00000b20| 20 41 4e 44 20 41 43 43 | 55 52 41 43 59 2e 0d 49 | AND ACC|URACY..I|
|00000b30| 4e 20 4e 4f 20 45 56 45 | 4e 54 20 57 49 4c 4c 20 |N NO EVE|NT WILL |
|00000b40| 41 50 50 4c 45 20 42 45 | 20 4c 49 41 42 4c 45 20 |APPLE BE| LIABLE |
|00000b50| 46 4f 52 20 44 49 52 45 | 43 54 2c 20 49 4e 44 49 |FOR DIRE|CT, INDI|
|00000b60| 52 45 43 54 2c 20 53 50 | 45 43 49 41 4c 2c 20 49 |RECT, SP|ECIAL, I|
|00000b70| 4e 43 49 44 45 4e 54 41 | 4c 2c 20 4f 52 20 43 4f |NCIDENTA|L, OR CO|
|00000b80| 4e 53 45 51 55 45 4e 54 | 49 41 4c 20 44 41 4d 41 |NSEQUENT|IAL DAMA|
|00000b90| 47 45 53 20 52 45 53 55 | 4c 54 49 4e 47 20 46 52 |GES RESU|LTING FR|
|00000ba0| 4f 4d 20 41 4e 59 20 44 | 45 46 45 43 54 20 4f 52 |OM ANY D|EFECT OR|
|00000bb0| 20 49 4e 41 43 43 55 52 | 41 43 59 20 49 4e 20 54 | INACCUR|ACY IN T|
|00000bc0| 48 49 53 20 4d 41 4e 55 | 41 4c 2c 20 65 76 65 6e |HIS MANU|AL, even|
|00000bd0| 20 69 66 20 61 64 76 69 | 73 65 64 20 6f 66 20 74 | if advi|sed of t|
|00000be0| 68 65 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 6f |he possi|bility o|
|00000bf0| 66 20 73 75 63 68 20 64 | 61 6d 61 67 65 73 2e 0d |f such d|amages..|
|00000c00| 54 48 45 20 57 41 52 52 | 41 4e 54 59 20 41 4e 44 |THE WARR|ANTY AND|
|00000c10| 20 52 45 4d 45 44 49 45 | 53 20 53 45 54 20 46 4f | REMEDIE|S SET FO|
|00000c20| 52 54 48 20 41 42 4f 56 | 45 20 41 52 45 20 45 58 |RTH ABOV|E ARE EX|
|00000c30| 43 4c 55 53 49 56 45 20 | 41 4e 44 20 49 4e 20 4c |CLUSIVE |AND IN L|
|00000c40| 49 45 55 20 4f 46 20 41 | 4c 4c 20 4f 54 48 45 52 |IEU OF A|LL OTHER|
|00000c50| 53 2c 20 4f 52 41 4c 20 | 4f 52 20 57 52 49 54 54 |S, ORAL |OR WRITT|
|00000c60| 45 4e 2c 20 45 58 50 52 | 45 53 53 20 4f 52 20 49 |EN, EXPR|ESS OR I|
|00000c70| 4d 50 4c 49 45 44 2e 20 | 4e 6f 20 41 70 70 6c 65 |MPLIED. |No Apple|
|00000c80| 20 64 65 61 6c 65 72 2c | 20 61 67 65 6e 74 2c 20 | dealer,| agent, |
|00000c90| 6f 72 20 65 6d 70 6c 6f | 79 65 65 20 69 73 20 61 |or emplo|yee is a|
|00000ca0| 75 74 68 6f 72 69 7a 65 | 64 20 74 6f 20 6d 61 6b |uthorize|d to mak|
|00000cb0| 65 20 61 6e 79 20 6d 6f | 64 69 66 69 63 61 74 69 |e any mo|dificati|
|00000cc0| 6f 6e 2c 20 65 78 74 65 | 6e 73 69 6f 6e 2c 20 6f |on, exte|nsion, o|
|00000cd0| 72 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |r additi|on to th|
|00000ce0| 69 73 20 77 61 72 72 61 | 6e 74 79 2e 0d 53 6f 6d |is warra|nty..Som|
|00000cf0| 65 20 73 74 61 74 65 73 | 20 64 6f 20 6e 6f 74 20 |e states| do not |
|00000d00| 61 6c 6c 6f 77 20 74 68 | 65 20 65 78 63 6c 75 73 |allow th|e exclus|
|00000d10| 69 6f 6e 20 6f 72 20 6c | 69 6d 69 74 61 74 69 6f |ion or l|imitatio|
|00000d20| 6e 20 6f 66 20 69 6d 70 | 6c 69 65 64 20 77 61 72 |n of imp|lied war|
|00000d30| 72 61 6e 74 69 65 73 20 | 6f 72 20 6c 69 61 62 69 |ranties |or liabi|
|00000d40| 6c 69 74 79 20 66 6f 72 | 20 69 6e 63 69 64 65 6e |lity for| inciden|
|00000d50| 74 61 6c 20 6f 72 20 63 | 6f 6e 73 65 71 75 65 6e |tal or c|onsequen|
|00000d60| 74 69 61 6c 20 64 61 6d | 61 67 65 73 2c 20 73 6f |tial dam|ages, so|
|00000d70| 20 74 68 65 20 61 62 6f | 76 65 20 6c 69 6d 69 74 | the abo|ve limit|
|00000d80| 61 74 69 6f 6e 20 6f 72 | 20 65 78 63 6c 75 73 69 |ation or| exclusi|
|00000d90| 6f 6e 20 6d 61 79 20 6e | 6f 74 20 61 70 70 6c 79 |on may n|ot apply|
|00000da0| 20 74 6f 20 79 6f 75 2e | 20 54 68 69 73 20 77 61 | to you.| This wa|
|00000db0| 72 72 61 6e 74 79 20 67 | 69 76 65 73 20 79 6f 75 |rranty g|ives you|
|00000dc0| 20 73 70 65 63 69 66 69 | 63 20 6c 65 67 61 6c 20 | specifi|c legal |
|00000dd0| 72 69 67 68 74 73 2c 20 | 61 6e 64 20 79 6f 75 20 |rights, |and you |
|00000de0| 6d 61 79 20 61 6c 73 6f | 20 68 61 76 65 20 6f 74 |may also| have ot|
|00000df0| 68 65 72 20 72 69 67 68 | 74 73 20 77 68 69 63 68 |her righ|ts which|
|00000e00| 20 76 61 72 79 20 66 72 | 6f 6d 20 73 74 61 74 65 | vary fr|om state|
|00000e10| 20 74 6f 20 73 74 61 74 | 65 2e 0d 4c 69 73 74 69 | to stat|e..Listi|
|00000e20| 6e 67 20 31 2d 30 0d 54 | 61 62 6c 65 20 31 2d 30 |ng 1-0.T|able 1-0|
|00000e30| 0d 43 6f 6e 74 65 6e 74 | 73 0d 50 61 6c 65 74 74 |.Content|s.Palett|
|00000e40| 65 20 4d 61 6e 61 67 65 | 72 0d 43 6f 6e 74 65 6e |e Manage|r.Conten|
|00000e50| 74 73 0d 41 62 6f 75 74 | 20 74 68 65 20 50 61 6c |ts.About| the Pal|
|00000e60| 65 74 74 65 20 4d 61 6e | 61 67 65 72 14 14 31 2d |ette Man|ager..1-|
|00000e70| 35 0d 54 68 65 20 50 61 | 6c 65 74 74 65 20 50 61 |5.The Pa|lette Pa|
|00000e80| 72 61 64 69 67 6d 14 14 | 31 2d 36 0d 50 61 6c 65 |radigm..|1-6.Pale|
|00000e90| 74 74 65 20 46 6f 72 6d | 61 74 14 14 31 2d 36 0d |tte Form|at..1-6.|
|00000ea0| 43 6f 6c 6f 72 73 20 69 | 6e 20 61 20 50 61 6c 65 |Colors i|n a Pale|
|00000eb0| 74 74 65 14 14 31 2d 37 | 0d 48 6f 77 20 74 68 65 |tte..1-7|.How the|
|00000ec0| 20 50 61 6c 65 74 74 65 | 20 4d 61 6e 61 67 65 72 | Palette| Manager|
|00000ed0| 20 41 6c 6c 6f 63 61 74 | 65 73 20 43 6f 6c 6f 72 | Allocat|es Color|
|00000ee0| 73 20 66 6f 72 20 44 69 | 73 70 6c 61 79 14 14 31 |s for Di|splay..1|
|00000ef0| 2d 38 0d 48 6f 77 20 74 | 68 65 20 50 61 6c 65 74 |-8.How t|he Palet|
|00000f00| 74 65 20 4d 61 6e 61 67 | 65 72 20 52 65 73 74 6f |te Manag|er Resto|
|00000f10| 72 65 73 20 74 68 65 20 | 43 6f 6c 6f 72 20 45 6e |res the |Color En|
|00000f20| 76 69 72 6f 6e 6d 65 6e | 74 14 14 31 2d 39 0d 54 |vironmen|t..1-9.T|
|00000f30| 68 65 20 50 61 6c 65 74 | 74 65 20 52 65 73 6f 75 |he Palet|te Resou|
|00000f40| 72 63 65 20 46 69 6c 65 | 14 14 31 2d 31 30 0d 44 |rce File|..1-10.D|
|00000f50| 65 66 69 6e 69 6e 67 20 | 74 68 65 20 52 47 42 20 |efining |the RGB |
|00000f60| 43 6f 6c 6f 72 20 6f 66 | 20 61 6e 20 45 6e 74 72 |Color of| an Entr|
|00000f70| 79 14 14 31 2d 31 30 0d | 53 70 65 63 69 66 79 69 |y..1-10.|Specifyi|
|00000f80| 6e 67 20 45 6e 74 72 79 | 20 55 73 61 67 65 14 14 |ng Entry| Usage..|
|00000f90| 31 2d 31 31 0d 43 6f 75 | 72 74 65 6f 75 73 20 43 |1-11.Cou|rteous C|
|00000fa0| 6f 6c 6f 72 73 14 14 31 | 2d 31 31 0d 54 6f 6c 65 |olors..1|-11.Tole|
|00000fb0| 72 61 6e 74 20 43 6f 6c | 6f 72 73 14 14 31 2d 31 |rant Col|ors..1-1|
|00000fc0| 32 0d 41 6e 69 6d 61 74 | 65 64 20 43 6f 6c 6f 72 |2.Animat|ed Color|
|00000fd0| 73 14 14 31 2d 31 33 0d | 44 69 73 70 6c 61 79 69 |s..1-13.|Displayi|
|00000fe0| 6e 67 20 41 6e 69 6d 61 | 74 65 64 20 43 6f 6c 6f |ng Anima|ted Colo|
|00000ff0| 72 73 20 6f 6e 20 44 69 | 72 65 63 74 20 44 65 76 |rs on Di|rect Dev|
|00001000| 69 63 65 73 14 14 31 2d | 31 34 0d 45 78 70 6c 69 |ices..1-|14.Expli|
|00001010| 63 69 74 20 43 6f 6c 6f | 72 73 14 14 31 2d 31 35 |cit Colo|rs..1-15|
|00001020| 0d 49 6e 68 69 62 69 74 | 65 64 20 43 6f 6c 6f 72 |.Inhibit|ed Color|
|00001030| 73 14 14 31 2d 31 35 0d | 43 6f 6d 62 69 6e 69 6e |s..1-15.|Combinin|
|00001040| 67 20 43 6f 6c 6f 72 20 | 55 73 61 67 65 20 66 6f |g Color |Usage fo|
|00001050| 72 20 61 6e 20 45 6e 74 | 72 79 14 14 31 2d 31 36 |r an Ent|ry..1-16|
|00001060| 0d 53 65 71 75 65 6e 63 | 69 6e 67 20 74 68 65 20 |.Sequenc|ing the |
|00001070| 45 6e 74 72 69 65 73 14 | 14 31 2d 31 37 0d 55 73 |Entries.|.1-17.Us|
|00001080| 69 6e 67 20 74 68 65 20 | 50 61 6c 65 74 74 65 20 |ing the |Palette |
|00001090| 4d 61 6e 61 67 65 72 14 | 14 31 2d 31 37 0d 43 72 |Manager.|.1-17.Cr|
|000010a0| 65 61 74 69 6e 67 20 50 | 61 6c 65 74 74 65 73 14 |eating P|alettes.|
|000010b0| 14 31 2d 31 37 0d 43 72 | 65 61 74 69 6e 67 20 61 |.1-17.Cr|eating a|
|000010c0| 20 50 61 6c 65 74 74 65 | 20 69 6e 20 61 20 52 65 | Palette| in a Re|
|000010d0| 73 6f 75 72 63 65 20 46 | 69 6c 65 14 14 31 2d 31 |source F|ile..1-1|
|000010e0| 37 0d 43 72 65 61 74 69 | 6e 67 20 50 61 6c 65 74 |7.Creati|ng Palet|
|000010f0| 74 65 73 20 62 79 20 43 | 6f 70 79 69 6e 67 14 14 |tes by C|opying..|
|00001100| 31 2d 32 30 0d 43 68 61 | 6e 67 69 6e 67 20 74 68 |1-20.Cha|nging th|
|00001110| 65 20 50 61 6c 65 74 74 | 65 20 66 6f 72 20 61 20 |e Palett|e for a |
|00001120| 57 69 6e 64 6f 77 14 14 | 31 2d 32 31 0d 44 65 73 |Window..|1-21.Des|
|00001130| 69 67 6e 61 74 69 6e 67 | 20 61 20 44 65 66 61 75 |ignating| a Defau|
|00001140| 6c 74 20 50 61 6c 65 74 | 74 65 20 52 65 73 6f 75 |lt Palet|te Resou|
|00001150| 72 63 65 20 66 6f 72 20 | 59 6f 75 72 20 41 70 70 |rce for |Your App|
|00001160| 6c 69 63 61 74 69 6f 6e | 14 14 31 2d 32 31 0d 44 |lication|..1-21.D|
|00001170| 72 61 77 69 6e 67 20 77 | 69 74 68 20 61 20 50 61 |rawing w|ith a Pa|
|00001180| 6c 65 74 74 65 d5 73 20 | 43 6f 6c 6f 72 73 14 14 |lette.s |Colors..|
|00001190| 31 2d 32 32 0d 47 65 74 | 74 69 6e 67 20 61 6e 64 |1-22.Get|ting and|
|000011a0| 20 43 68 61 6e 67 69 6e | 67 20 50 61 6c 65 74 74 | Changin|g Palett|
|000011b0| 65 20 45 6e 74 72 69 65 | 73 14 14 31 2d 32 32 0d |e Entrie|s..1-22.|
|000011c0| 4c 69 6e 6b 69 6e 67 20 | 61 20 43 6f 6c 6f 72 20 |Linking |a Color |
|000011d0| 54 61 62 6c 65 20 74 6f | 20 61 20 50 61 6c 65 74 |Table to| a Palet|
|000011e0| 74 65 14 14 31 2d 32 32 | 0d 55 73 69 6e 67 20 4f |te..1-22|.Using O|
|000011f0| 6e 65 20 50 61 6c 65 74 | 74 65 20 57 69 74 68 20 |ne Palet|te With |
|00001200| 4d 61 6e 79 20 50 6f 72 | 74 73 20 61 6e 64 20 57 |Many Por|ts and W|
|00001210| 69 6e 64 6f 77 73 14 14 | 31 2d 32 33 0d 50 61 6c |indows..|1-23.Pal|
|00001220| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 52 65 66 |ette Man|ager Ref|
|00001230| 65 72 65 6e 63 65 14 14 | 31 2d 32 33 0d 44 61 74 |erence..|1-23.Dat|
|00001240| 61 20 53 74 72 75 63 74 | 75 72 65 73 14 14 31 2d |a Struct|ures..1-|
|00001250| 32 34 0d 50 61 6c 65 74 | 74 65 20 4d 61 6e 61 67 |24.Palet|te Manag|
|00001260| 65 72 20 52 6f 75 74 69 | 6e 65 73 14 14 31 2d 32 |er Routi|nes..1-2|
|00001270| 35 0d 49 6e 69 74 69 61 | 6c 69 7a 69 6e 67 20 74 |5.Initia|lizing t|
|00001280| 68 65 20 50 61 6c 65 74 | 74 65 20 4d 61 6e 61 67 |he Palet|te Manag|
|00001290| 65 72 14 14 31 2d 32 35 | 0d 49 6e 69 74 69 61 6c |er..1-25|.Initial|
|000012a0| 69 7a 69 6e 67 20 61 6e | 64 20 41 6c 6c 6f 63 61 |izing an|d Alloca|
|000012b0| 74 69 6e 67 20 50 61 6c | 65 74 74 65 73 14 14 31 |ting Pal|ettes..1|
|000012c0| 2d 32 36 0d 49 6e 74 65 | 72 61 63 74 69 6e 67 20 |-26.Inte|racting |
|000012d0| 57 69 74 68 20 74 68 65 | 20 57 69 6e 64 6f 77 20 |With the| Window |
|000012e0| 4d 61 6e 61 67 65 72 14 | 14 31 2d 32 38 0d 44 72 |Manager.|.1-28.Dr|
|000012f0| 61 77 69 6e 67 20 57 69 | 74 68 20 43 6f 6c 6f 72 |awing Wi|th Color|
|00001300| 20 50 61 6c 65 74 74 65 | 73 14 14 31 2d 33 30 0d | Palette|s..1-30.|
|00001310| 41 6e 69 6d 61 74 69 6e | 67 20 50 61 6c 65 74 74 |Animatin|g Palett|
|00001320| 65 73 14 14 31 2d 33 34 | 0d 4d 61 6e 69 70 75 6c |es..1-34|.Manipul|
|00001330| 61 74 69 6e 67 20 50 61 | 6c 65 74 74 65 73 20 61 |ating Pa|lettes a|
|00001340| 6e 64 20 43 6f 6c 6f 72 | 20 54 61 62 6c 65 73 14 |nd Color| Tables.|
|00001350| 14 31 2d 33 35 0d 4d 61 | 6e 69 70 75 6c 61 74 69 |.1-35.Ma|nipulati|
|00001360| 6e 67 20 50 61 6c 65 74 | 74 65 20 45 6e 74 72 69 |ng Palet|te Entri|
|00001370| 65 73 14 14 31 2d 33 38 | 0d 50 61 6c 65 74 74 65 |es..1-38|.Palette|
|00001380| 20 4d 61 6e 61 67 65 72 | 20 52 65 73 6f 75 72 63 | Manager| Resourc|
|00001390| 65 14 14 31 2d 34 31 0d | 41 73 73 65 6d 62 6c 79 |e..1-41.|Assembly|
|000013a0| 20 4c 61 6e 67 75 61 67 | 65 20 53 75 6d 6d 61 72 | Languag|e Summar|
|000013b0| 79 14 14 31 2d 34 37 0d | 0d 50 61 6c 65 74 74 65 |y..1-47.|.Palette|
|000013c0| 20 4d 61 6e 61 67 65 72 | 0d 0d 54 68 65 20 50 61 | Manager|..The Pa|
|000013d0| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 6d 6f |lette Ma|nager mo|
|000013e0| 6e 69 74 6f 72 73 20 74 | 68 65 20 63 6f 6c 6f 72 |nitors t|he color|
|000013f0| 20 6e 65 65 64 73 20 6f | 66 20 74 68 65 20 67 72 | needs o|f the gr|
|00001400| 61 70 68 69 63 73 20 65 | 6e 76 69 72 6f 6e 6d 65 |aphics e|nvironme|
|00001410| 6e 74 2e 20 54 68 65 20 | 50 61 6c 65 74 74 65 20 |nt. The |Palette |
|00001420| 4d 61 6e 61 67 65 72 20 | 63 61 6e 20 74 72 61 63 |Manager |can trac|
|00001430| 6b 20 74 68 65 20 63 6f | 6d 62 69 6e 65 64 20 63 |k the co|mbined c|
|00001440| 6f 6c 6f 72 20 61 6e 64 | 20 67 72 61 79 2d 73 63 |olor and| gray-sc|
|00001450| 61 6c 65 20 72 65 71 75 | 69 72 65 6d 65 6e 74 73 |ale requ|irements|
|00001460| 20 6f 66 20 74 68 65 20 | 4f 70 65 72 61 74 69 6e | of the |Operatin|
|00001470| 67 20 53 79 73 74 65 6d | 2c 20 79 6f 75 72 20 61 |g System|, your a|
|00001480| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |pplicati|on, and |
|00001490| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|000014a0| 6e 73 2c 20 61 6e 64 20 | 69 74 20 63 61 6e 20 64 |ns, and |it can d|
|000014b0| 6f 20 73 6f 20 61 63 72 | 6f 73 73 20 6d 75 6c 74 |o so acr|oss mult|
|000014c0| 69 70 6c 65 20 73 63 72 | 65 65 6e 73 2e 20 54 68 |iple scr|eens. Th|
|000014d0| 69 73 20 63 68 61 70 74 | 65 72 20 64 65 73 63 72 |is chapt|er descr|
|000014e0| 69 62 65 73 20 68 6f 77 | 20 79 6f 75 20 63 61 6e |ibes how| you can|
|000014f0| 20 75 73 65 20 74 68 65 | 20 50 61 6c 65 74 74 65 | use the| Palette|
|00001500| 20 4d 61 6e 61 67 65 72 | 20 74 6f 20 65 6e 73 75 | Manager| to ensu|
|00001510| 72 65 20 74 68 61 74 20 | 61 20 73 65 74 20 6f 66 |re that |a set of|
|00001520| 20 63 6f 6c 6f 72 73 20 | 69 73 20 61 76 61 69 6c | colors |is avail|
|00001530| 61 62 6c 65 20 77 68 65 | 6e 65 76 65 72 20 6f 6e |able whe|never on|
|00001540| 65 20 6f 66 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |e of you|r applic|
|00001550| 61 74 69 6f 6e d5 73 20 | 77 69 6e 64 6f 77 73 20 |ation.s |windows |
|00001560| 69 73 20 61 63 74 69 76 | 65 2e 20 46 6f 72 20 65 |is activ|e. For e|
|00001570| 78 61 6d 70 6c 65 2c 20 | 79 6f 75 20 6d 69 67 68 |xample, |you migh|
|00001580| 74 20 75 73 65 20 74 68 | 65 20 50 61 6c 65 74 74 |t use th|e Palett|
|00001590| 65 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 63 72 65 |e Manage|r to cre|
|000015a0| 61 74 65 20 70 61 6c 65 | 74 74 65 73 20 66 6f 72 |ate pale|ttes for|
|000015b0| 20 64 69 73 70 6c 61 79 | 20 64 65 76 69 63 65 73 | display| devices|
|000015c0| 20 77 69 74 68 20 6c 69 | 6d 69 74 65 64 20 63 6f | with li|mited co|
|000015d0| 6c 6f 72 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |lor capa|bilities|
|000015e0| 2c 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 62 65 |, so tha|t the be|
|000015f0| 73 74 20 73 65 74 20 6f | 66 20 63 6f 6c 6f 72 73 |st set o|f colors|
|00001600| 20 77 6f 75 6c 64 20 62 | 65 20 61 76 61 69 6c 61 | would b|e availa|
|00001610| 62 6c 65 20 6f 6e 20 61 | 20 64 65 76 69 63 65 20 |ble on a| device |
|00001620| 74 68 61 74 20 63 6f 75 | 6c 64 20 6f 6e 6c 79 20 |that cou|ld only |
|00001630| 64 69 73 70 6c 61 79 20 | 31 36 20 63 6f 6c 6f 72 |display |16 color|
|00001640| 73 2e 0d 59 6f 75 20 6e | 65 65 64 20 74 6f 20 72 |s..You n|eed to r|
|00001650| 65 61 64 20 74 68 69 73 | 20 63 68 61 70 74 65 72 |ead this| chapter|
|00001660| 20 69 66 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | if your| applica|
|00001670| 74 69 6f 6e 20 75 73 65 | 73 20 43 6f 6c 6f 72 20 |tion use|s Color |
|00001680| 51 75 69 63 6b 44 72 61 | 77 d5 73 20 63 6f 6c 6f |QuickDra|w.s colo|
|00001690| 72 20 73 79 73 74 65 6d | 2c 20 72 61 74 68 65 72 |r system|, rather|
|000016a0| 20 74 68 61 6e 20 74 68 | 65 20 62 61 73 69 63 20 | than th|e basic |
|000016b0| 65 69 67 68 74 2d 63 6f | 6c 6f 72 20 73 79 73 74 |eight-co|lor syst|
|000016c0| 65 6d 20 73 75 70 70 6c | 69 65 64 20 77 69 74 68 |em suppl|ied with|
|000016d0| 20 62 61 73 69 63 20 51 | 75 69 63 6b 44 72 61 77 | basic Q|uickDraw|
|000016e0| 2e 20 0d 59 6f 75 20 73 | 68 6f 75 6c 64 20 62 65 |. .You s|hould be|
|000016f0| 20 66 61 6d 69 6c 69 61 | 72 20 77 69 74 68 20 74 | familia|r with t|
|00001700| 68 65 20 47 72 61 70 68 | 69 63 73 20 4f 76 65 72 |he Graph|ics Over|
|00001710| 76 69 65 77 20 61 6e 64 | 20 51 75 69 63 6b 44 72 |view and| QuickDr|
|00001720| 61 77 20 63 68 61 70 74 | 65 72 73 20 69 6e 20 74 |aw chapt|ers in t|
|00001730| 68 69 73 20 76 6f 6c 75 | 6d 65 2e 20 49 6e 20 70 |his volu|me. In p|
|00001740| 61 72 74 69 63 75 6c 61 | 72 2c 20 79 6f 75 20 73 |articula|r, you s|
|00001750| 68 6f 75 6c 64 20 75 6e | 64 65 72 73 74 61 6e 64 |hould un|derstand|
|00001760| 20 68 6f 77 20 43 6f 6c | 6f 72 20 51 75 69 63 6b | how Col|or Quick|
|00001770| 44 72 61 77 20 61 6e 64 | 20 67 72 61 70 68 69 63 |Draw and| graphic|
|00001780| 20 64 65 76 69 63 65 73 | 20 73 75 63 68 20 61 73 | devices| such as|
|00001790| 20 76 69 64 65 6f 20 63 | 61 72 64 73 20 64 69 73 | video c|ards dis|
|000017a0| 70 6c 61 79 20 63 6f 6c | 6f 72 73 20 61 6e 64 20 |play col|ors and |
|000017b0| 67 72 61 79 73 20 6f 6e | 20 61 20 73 63 72 65 65 |grays on| a scree|
|000017c0| 6e 2e 20 54 68 65 20 63 | 68 61 70 74 65 72 20 d2 |n. The c|hapter .|
|000017d0| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 74 6f 20 |Introduc|tion to |
|000017e0| 4d 61 63 69 6e 74 6f 73 | 68 20 49 6d 61 67 69 6e |Macintos|h Imagin|
|000017f0| 67 d3 20 64 65 73 63 72 | 69 62 65 73 20 74 68 65 |g. descr|ibes the|
|00001800| 20 66 6f 72 6d 61 74 20 | 61 6e 64 20 75 73 65 73 | format |and uses|
|00001810| 20 6f 66 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 73 | of colo|r tables|
|00001820| 2c 20 61 6e 64 20 69 74 | 20 69 6e 74 72 6f 64 75 |, and it| introdu|
|00001830| 63 65 73 20 62 6f 74 68 | 20 74 68 65 20 69 6e 64 |ces both| the ind|
|00001840| 65 78 65 64 20 70 69 78 | 65 6c 20 73 79 73 74 65 |exed pix|el syste|
|00001850| 6d 20 74 68 61 74 20 63 | 61 6e 20 64 69 73 70 6c |m that c|an displ|
|00001860| 61 79 20 75 70 20 74 6f | 20 32 35 36 20 63 6f 6c |ay up to| 256 col|
|00001870| 6f 72 73 20 61 6e 64 20 | 74 68 65 20 64 69 72 65 |ors and |the dire|
|00001880| 63 74 20 70 69 78 65 6c | 20 73 79 73 74 65 6d 20 |ct pixel| system |
|00001890| 74 68 61 74 20 63 61 6e | 20 64 69 73 70 6c 61 79 |that can| display|
|000018a0| 20 74 68 6f 75 73 61 6e | 64 73 20 6f 72 20 6d 69 | thousan|ds or mi|
|000018b0| 6c 6c 69 6f 6e 73 20 6f | 66 20 63 6f 6c 6f 72 73 |llions o|f colors|
|000018c0| 2e 20 49 6e 20 74 68 65 | 20 63 68 61 70 74 65 72 |. In the| chapter|
|000018d0| 20 d2 43 6f 6c 6f 72 20 | 51 75 69 63 6b 44 72 61 | .Color |QuickDra|
|000018e0| 77 2c d3 20 61 6c 73 6f | 20 69 6e 20 74 68 69 73 |w,. also| in this|
|000018f0| 20 62 6f 6f 6b 2c 20 79 | 6f 75 20 77 69 6c 6c 20 | book, y|ou will |
|00001900| 66 69 6e 64 20 74 68 65 | 20 64 65 74 61 69 6c 73 |find the| details|
|00001910| 20 61 62 6f 75 74 20 74 | 68 65 20 63 6f 6c 6f 72 | about t|he color|
|00001920| 20 67 72 61 70 68 69 63 | 73 20 70 6f 72 74 20 61 | graphic|s port a|
|00001930| 6e 64 20 74 68 65 20 67 | 72 61 66 56 61 72 73 20 |nd the g|rafVars |
|00001940| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 20 77 |data str|ucture w|
|00001950| 68 69 63 68 20 74 6f 67 | 65 74 68 65 72 20 68 6f |hich tog|ether ho|
|00001960| 6c 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |ld infor|mation a|
|00001970| 62 6f 75 74 20 74 68 65 | 20 63 6f 6c 6f 72 20 73 |bout the| color s|
|00001980| 65 74 74 69 6e 67 73 2e | 0d 42 65 63 61 75 73 65 |ettings.|.Because|
|00001990| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e | the Pal|ette Man|
|000019a0| 61 67 65 72 20 75 73 65 | 73 20 74 68 65 20 43 6f |ager use|s the Co|
|000019b0| 6c 6f 72 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 63 |lor Mana|ger to c|
|000019c0| 6f 6f 72 64 69 6e 61 74 | 65 20 63 6f 6c 6f 72 20 |oordinat|e color |
|000019d0| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 61 63 72 6f |assignme|nts acro|
|000019e0| 73 73 20 6d 75 6c 74 69 | 70 6c 65 20 67 72 61 70 |ss multi|ple grap|
|000019f0| 68 69 63 20 64 65 76 69 | 63 65 73 2c 20 6d 6f 73 |hic devi|ces, mos|
|00001a00| 74 20 64 65 76 65 6c 6f | 70 65 72 73 20 64 6f 6e |t develo|pers don|
|00001a10| d5 74 20 6e 65 65 64 20 | 74 6f 20 72 65 61 64 20 |.t need |to read |
|00001a20| 74 68 65 20 43 6f 6c 6f | 72 20 4d 61 6e 61 67 65 |the Colo|r Manage|
|00001a30| 72 20 63 68 61 70 74 65 | 72 2c 20 77 68 69 63 68 |r chapte|r, which|
|00001a40| 20 69 74 73 65 6c 66 20 | 6f 6e 6c 79 20 6f 70 65 | itself |only ope|
|00001a50| 72 61 74 65 73 20 6f 6e | 20 73 69 6e 67 6c 65 20 |rates on| single |
|00001a60| 64 65 76 69 63 65 73 2e | 0d 54 68 65 20 72 65 73 |devices.|.The res|
|00001a70| 74 20 6f 66 20 74 68 69 | 73 20 63 68 61 70 74 65 |t of thi|s chapte|
|00001a80| 72 20 64 65 73 63 72 69 | 62 65 73 0d 6e 09 70 61 |r descri|bes.n.pa|
|00001a90| 6c 65 74 74 65 73 2c 20 | 61 6e 64 20 74 68 65 20 |lettes, |and the |
|00001aa0| 64 69 66 66 65 72 65 6e | 74 20 75 73 61 67 65 73 |differen|t usages|
|00001ab0| 20 74 6f 20 77 68 69 63 | 68 20 63 6f 6c 6f 72 73 | to whic|h colors|
|00001ac0| 20 69 6e 20 70 61 6c 65 | 74 74 65 73 20 61 72 65 | in pale|ttes are|
|00001ad0| 20 61 73 73 69 67 6e 65 | 64 0d 6e 09 68 6f 77 20 | assigne|d.n.how |
|00001ae0| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|00001af0| 67 65 72 20 63 68 61 6e | 67 65 73 20 74 68 65 20 |ger chan|ges the |
|00001b00| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 62 79 20 61 |environm|ent by a|
|00001b10| 6c 6c 6f 63 61 74 69 6e | 67 20 6e 65 77 20 63 6f |llocatin|g new co|
|00001b20| 6c 6f 72 73 20 77 68 65 | 6e 2c 20 66 6f 72 20 65 |lors whe|n, for e|
|00001b30| 78 61 6d 70 6c 65 2c 20 | 61 20 77 69 6e 64 6f 77 |xample, |a window|
|00001b40| 20 69 73 20 62 72 6f 75 | 67 68 74 20 74 6f 20 74 | is brou|ght to t|
|00001b50| 68 65 20 66 72 6f 6e 74 | 0d 6e 09 68 6f 77 20 74 |he front|.n.how t|
|00001b60| 68 65 20 50 61 6c 65 74 | 74 65 20 4d 61 6e 61 67 |he Palet|te Manag|
|00001b70| 65 72 20 72 65 73 74 6f | 72 65 73 20 74 68 65 20 |er resto|res the |
|00001b80| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 20 77 68 65 6e |environm|ent when|
|00001b90| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00001ba0| 6e 20 66 69 6e 69 73 68 | 65 73 20 65 78 65 63 75 |n finish|es execu|
|00001bb0| 74 69 6e 67 0d 6e 09 74 | 68 65 20 66 6f 72 6d 61 |ting.n.t|he forma|
|00001bc0| 74 20 6f 66 20 74 68 65 | 20 70 61 6c 65 74 74 65 |t of the| palette|
|00001bd0| 20 72 65 73 6f 75 72 63 | 65 20 66 69 6c 65 2c 20 | resourc|e file, |
|00001be0| 69 6e 20 77 68 69 63 68 | 20 79 6f 75 20 61 6c 6c |in which| you all|
|00001bf0| 6f 74 20 74 68 65 20 63 | 6f 6c 6f 72 73 20 79 6f |ot the c|olors yo|
|00001c00| 75 20 6e 65 65 64 20 61 | 6e 64 20 73 70 65 63 69 |u need a|nd speci|
|00001c10| 66 79 20 68 6f 77 20 62 | 61 64 6c 79 20 79 6f 75 |fy how b|adly you|
|00001c20| 20 6e 65 65 64 20 74 68 | 65 6d 0d 6e 09 68 6f 77 | need th|em.n.how|
|00001c30| 20 74 6f 20 63 72 65 61 | 74 65 20 70 61 6c 65 74 | to crea|te palet|
|00001c40| 74 65 20 77 69 74 68 69 | 6e 20 79 6f 75 72 20 61 |te withi|n your a|
|00001c50| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 66 72 6f 6d |pplicati|on, from|
|00001c60| 20 72 65 73 6f 75 72 63 | 65 73 20 61 6e 64 20 66 | resourc|es and f|
|00001c70| 72 6f 6d 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 73 |rom colo|r tables|
|00001c80| 20 0d 6e 09 68 6f 77 20 | 74 6f 20 64 72 61 77 20 | .n.how |to draw |
|00001c90| 75 73 69 6e 67 20 79 6f | 75 72 20 70 61 6c 65 74 |using yo|ur palet|
|00001ca0| 74 65 d5 73 20 63 6f 6c | 6f 72 73 0d 0d 41 62 6f |te.s col|ors..Abo|
|00001cb0| 75 74 20 74 68 65 20 50 | 61 6c 65 74 74 65 20 4d |ut the P|alette M|
|00001cc0| 61 6e 61 67 65 72 20 0d | 0d 59 6f 75 20 63 61 6e |anager .|.You can|
|00001cd0| 20 75 73 65 20 74 68 65 | 20 50 61 6c 65 74 74 65 | use the| Palette|
|00001ce0| 20 4d 61 6e 61 67 65 72 | 20 74 6f 20 0d 6e 09 63 | Manager| to .n.c|
|00001cf0| 72 65 61 74 65 20 61 20 | 70 61 6c 65 74 74 65 20 |reate a |palette |
|00001d00| 73 6f 20 74 68 61 74 20 | 61 20 73 65 74 20 6f 66 |so that |a set of|
|00001d10| 20 63 6f 6c 6f 72 73 20 | 61 72 65 20 61 76 61 69 | colors |are avai|
|00001d20| 6c 61 62 6c 65 20 74 6f | 20 79 6f 75 72 20 61 70 |lable to| your ap|
|00001d30| 70 6c 69 63 61 74 69 6f | 6e d5 73 20 77 69 6e 64 |plicatio|n.s wind|
|00001d40| 6f 77 0d 6e 09 70 72 6f | 76 69 64 65 20 73 65 74 |ow.n.pro|vide set|
|00001d50| 73 20 6f 66 20 63 6f 6c | 6f 72 73 20 66 6f 72 20 |s of col|ors for |
|00001d60| 64 69 73 70 6c 61 79 69 | 6e 67 20 69 6d 61 67 65 |displayi|ng image|
|00001d70| 73 20 6f 6e 20 64 65 76 | 69 63 65 73 20 77 69 74 |s on dev|ices wit|
|00001d80| 68 20 64 69 66 66 65 72 | 65 6e 74 20 70 69 78 65 |h differ|ent pixe|
|00001d90| 6c 20 64 65 70 74 68 73 | 0d 6e 09 63 72 65 61 74 |l depths|.n.creat|
|00001da0| 65 20 63 6f 6c 6f 72 20 | 61 6e 69 6d 61 74 69 6f |e color |animatio|
|00001db0| 6e 20 65 66 66 65 63 74 | 73 0d 54 68 65 20 50 61 |n effect|s.The Pa|
|00001dc0| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 61 63 |lette Ma|nager ac|
|00001dd0| 74 73 20 61 73 20 69 6e | 74 65 72 6d 65 64 69 61 |ts as in|termedia|
|00001de0| 72 79 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 70 |ry betwe|en the p|
|00001df0| 61 6c 65 74 74 65 73 20 | 79 6f 75 20 63 72 65 61 |alettes |you crea|
|00001e00| 74 65 20 66 6f 72 20 79 | 6f 75 72 20 61 70 70 6c |te for y|our appl|
|00001e10| 69 63 61 74 69 6f 6e d5 | 73 20 77 69 6e 64 6f 77 |ication.|s window|
|00001e20| 73 20 61 6e 64 20 74 68 | 65 20 63 6f 6c 6f 72 20 |s and th|e color |
|00001e30| 6c 6f 6f 6b 75 70 20 74 | 61 62 6c 65 73 20 28 43 |lookup t|ables (C|
|00001e40| 4c 55 54 73 29 20 74 68 | 61 74 20 63 6f 6e 74 61 |LUTs) th|at conta|
|00001e50| 69 6e 20 74 68 65 20 63 | 6f 6c 6f 72 73 20 74 68 |in the c|olors th|
|00001e60| 61 74 20 69 6e 64 65 78 | 65 64 20 64 65 76 69 63 |at index|ed devic|
|00001e70| 65 73 20 63 61 6e 20 64 | 69 73 70 6c 61 79 2e 20 |es can d|isplay. |
|00001e80| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 69 66 20 |For exam|ple, if |
|00001e90| 61 20 75 73 65 72 20 69 | 73 20 77 6f 72 6b 69 6e |a user i|s workin|
|00001ea0| 67 20 69 6e 20 63 6f 6c | 6f 72 20 61 6e 64 20 6f |g in col|or and o|
|00001eb0| 70 65 6e 73 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |pens you|r applic|
|00001ec0| 61 74 69 6f 6e d5 73 20 | 77 69 6e 64 6f 77 20 6f |ation.s |window o|
|00001ed0| 72 20 6d 61 6b 65 73 20 | 69 74 20 61 63 74 69 76 |r makes |it activ|
|00001ee0| 65 20 61 6e 64 20 66 72 | 6f 6e 74 6d 6f 73 74 20 |e and fr|ontmost |
|00001ef0| 6f 6e 20 74 68 65 20 64 | 65 73 6b 74 6f 70 2c 20 |on the d|esktop, |
|00001f00| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|00001f10| 67 65 72 20 63 6f 6d 70 | 61 72 65 73 20 74 68 65 |ger comp|ares the|
|00001f20| 20 63 6f 6c 6f 72 73 20 | 6f 66 20 74 68 65 20 70 | colors |of the p|
|00001f30| 61 6c 65 74 74 65 20 79 | 6f 75 20 73 70 65 63 69 |alette y|ou speci|
|00001f40| 66 69 65 64 20 66 6f 72 | 20 79 6f 75 72 20 77 69 |fied for| your wi|
|00001f50| 6e 64 6f 77 20 77 69 74 | 68 20 74 68 6f 73 65 20 |ndow wit|h those |
|00001f60| 61 76 61 69 6c 61 62 6c | 65 20 66 6f 72 20 74 68 |availabl|e for th|
|00001f70| 65 20 76 69 64 65 6f 20 | 63 61 72 64 20 61 6e 64 |e video |card and|
|00001f80| 20 6c 6f 61 64 73 20 77 | 68 61 74 65 76 65 72 20 | loads w|hatever |
|00001f90| 63 6f 6c 6f 72 73 20 61 | 72 65 20 6e 65 65 64 65 |colors a|re neede|
|00001fa0| 64 20 69 6e 74 6f 20 74 | 68 65 20 63 6f 6c 6f 72 |d into t|he color|
|00001fb0| 20 74 61 62 6c 65 20 6f | 66 20 74 68 65 20 63 61 | table o|f the ca|
|00001fc0| 72 64 2e 0d 4f 6e 20 64 | 69 72 65 63 74 20 64 65 |rd..On d|irect de|
|00001fd0| 76 69 63 65 73 2c 20 74 | 68 65 20 50 61 6c 65 74 |vices, t|he Palet|
|00001fe0| 74 65 20 4d 61 6e 61 67 | 65 72 20 6c 6f 61 64 73 |te Manag|er loads|
|00001ff0| 20 74 68 65 20 65 78 61 | 63 74 20 63 6f 6c 6f 72 | the exa|ct color|
|00002000| 73 20 79 6f 75 20 72 65 | 71 75 65 73 74 2c 20 74 |s you re|quest, t|
|00002010| 6f 20 74 68 65 20 6c 69 | 6d 69 74 73 20 6f 66 20 |o the li|mits of |
|00002020| 74 68 65 20 63 61 72 64 | d5 73 20 70 69 78 65 6c |the card|.s pixel|
|00002030| 20 64 65 70 74 68 20 28 | 31 35 20 6f 72 20 32 34 | depth (|15 or 24|
|00002040| 20 62 69 74 73 20 70 65 | 72 20 70 69 78 65 6c 29 | bits pe|r pixel)|
|00002050| 2e 0d 0d 54 68 65 20 50 | 61 6c 65 74 74 65 20 50 |...The P|alette P|
|00002060| 61 72 61 64 69 67 6d 0d | 0d 50 61 6c 65 74 74 65 |aradigm.|.Palette|
|00002070| 73 20 61 72 65 20 65 61 | 73 79 20 74 6f 20 63 72 |s are ea|sy to cr|
|00002080| 65 61 74 65 2c 20 65 69 | 74 68 65 72 20 61 73 20 |eate, ei|ther as |
|00002090| 72 65 73 6f 75 72 63 65 | 73 20 6f 72 20 61 73 20 |resource|s or as |
|000020a0| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 73 20 |data str|uctures |
|000020b0| 77 69 74 68 69 6e 20 79 | 6f 75 72 20 61 70 70 6c |within y|our appl|
|000020c0| 69 63 61 74 69 6f 6e 2e | 20 59 6f 75 20 74 69 65 |ication.| You tie|
|000020d0| 20 61 20 70 61 6c 65 74 | 74 65 20 74 6f 20 79 6f | a palet|te to yo|
|000020e0| 75 72 20 77 69 6e 64 6f | 77 20 77 69 74 68 20 74 |ur windo|w with t|
|000020f0| 68 65 20 53 65 74 50 61 | 6c 65 74 74 65 20 70 72 |he SetPa|lette pr|
|00002100| 6f 63 65 64 75 72 65 2c | 20 61 6e 64 20 66 72 6f |ocedure,| and fro|
|00002110| 6d 20 74 68 65 6e 20 6f | 6e 20 74 68 65 20 50 61 |m then o|n the Pa|
|00002120| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 6d 61 |lette Ma|nager ma|
|00002130| 6e 61 67 65 73 20 74 68 | 65 20 63 6f 6c 6f 72 73 |nages th|e colors|
|00002140| 3a 20 77 68 65 6e 65 76 | 65 72 20 79 6f 75 72 20 |: whenev|er your |
|00002150| 77 69 6e 64 6f 77 20 69 | 73 20 61 63 74 69 76 61 |window i|s activa|
|00002160| 74 65 64 2c 20 74 68 65 | 20 50 61 6c 65 74 74 65 |ted, the| Palette|
|00002170| 20 4d 61 6e 61 67 65 72 | 20 63 68 65 63 6b 73 20 | Manager| checks |
|00002180| 74 68 65 20 67 72 61 70 | 68 69 63 73 20 64 65 76 |the grap|hics dev|
|00002190| 69 63 65 73 20 79 6f 75 | 72 20 77 69 6e 64 6f 77 |ices you|r window|
|000021a0| 20 74 6f 75 63 68 65 73 | 20 61 6e 64 20 65 6e 73 | touches| and ens|
|000021b0| 75 72 65 73 20 74 68 61 | 74 20 79 6f 75 72 20 63 |ures tha|t your c|
|000021c0| 6f 6c 6f 72 73 20 61 72 | 65 20 61 76 61 69 6c 61 |olors ar|e availa|
|000021d0| 62 6c 65 2e 20 49 6e 20 | 61 6c 6c 6f 63 61 74 69 |ble. In |allocati|
|000021e0| 6e 67 20 63 6f 6c 6f 72 | 73 20 66 6f 72 20 79 6f |ng color|s for yo|
|000021f0| 75 72 20 77 69 6e 64 6f | 77 2c 20 74 68 65 20 50 |ur windo|w, the P|
|00002200| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 20 74 |alette M|anager t|
|00002210| 61 6b 65 73 20 69 6e 74 | 6f 20 61 63 63 6f 75 6e |akes int|o accoun|
|00002220| 74 20 74 68 65 20 69 6d | 70 6f 72 74 61 6e 63 65 |t the im|portance|
|00002230| 20 79 6f 75 20 70 6c 61 | 63 65 64 20 6f 6e 20 74 | you pla|ced on t|
|00002240| 68 65 20 76 61 72 69 6f | 75 73 20 63 6f 6c 6f 72 |he vario|us color|
|00002250| 73 20 69 6e 20 74 68 65 | 20 70 61 6c 65 74 74 65 |s in the| palette|
|00002260| 20 61 73 20 77 65 6c 6c | 20 61 73 20 74 68 65 20 | as well| as the |
|00002270| 63 61 70 61 62 69 6c 69 | 74 69 65 73 20 6f 66 20 |capabili|ties of |
|00002280| 74 68 65 20 64 69 73 70 | 6c 61 79 20 64 65 76 69 |the disp|lay devi|
|00002290| 63 65 73 20 79 6f 75 72 | 20 77 69 6e 64 6f 77 20 |ces your| window |
|000022a0| 74 6f 75 63 68 65 73 2e | 0d 59 6f 75 20 75 73 75 |touches.|.You usu|
|000022b0| 61 6c 6c 79 20 63 72 65 | 61 74 65 20 70 61 6c 65 |ally cre|ate pale|
|000022c0| 74 74 65 73 20 66 72 6f | 6d 20 72 65 73 6f 75 72 |ttes fro|m resour|
|000022d0| 63 65 73 20 6f 66 20 74 | 79 70 65 20 27 70 6c 74 |ces of t|ype 'plt|
|000022e0| 74 27 2e 20 28 59 6f 75 | 20 63 61 6e 20 61 6c 73 |t'. (You| can als|
|000022f0| 6f 20 63 72 65 61 74 65 | 20 70 61 6c 65 74 74 65 |o create| palette|
|00002300| 73 20 66 72 6f 6d 20 63 | 6f 6c 6f 72 20 74 61 62 |s from c|olor tab|
|00002310| 6c 65 73 20 61 6e 64 20 | 66 72 6f 6d 20 6f 74 68 |les and |from oth|
|00002320| 65 72 20 70 61 6c 65 74 | 74 65 73 2e 29 20 49 6e |er palet|tes.) In|
|00002330| 20 74 68 65 20 70 61 6c | 65 74 74 65 20 72 65 73 | the pal|ette res|
|00002340| 6f 75 72 63 65 20 79 6f | 75 20 73 70 65 63 69 66 |ource yo|u specif|
|00002350| 79 20 74 68 65 20 52 47 | 42 20 63 6f 6c 6f 72 73 |y the RG|B colors|
|00002360| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00002370| 6e 20 6e 65 65 64 73 2e | 20 59 6f 75 20 63 61 6e |n needs.| You can|
|00002380| 20 69 6e 64 69 63 61 74 | 65 20 77 68 65 74 68 65 | indicat|e whethe|
|00002390| 72 20 65 61 63 68 20 63 | 6f 6c 6f 72 20 6d 75 73 |r each c|olor mus|
|000023a0| 74 20 62 65 20 6d 61 74 | 63 68 65 64 20 65 78 61 |t be mat|ched exa|
|000023b0| 63 74 6c 79 20 61 6e 64 | 2c 20 69 66 20 6e 6f 74 |ctly and|, if not|
|000023c0| 2c 20 68 6f 77 20 63 6c | 6f 73 65 20 61 20 6d 61 |, how cl|ose a ma|
|000023d0| 74 63 68 20 69 73 20 72 | 65 71 75 69 72 65 64 2e |tch is r|equired.|
|000023e0| 20 59 6f 75 20 63 61 6e | 20 74 61 69 6c 6f 72 20 | You can| tailor |
|000023f0| 79 6f 75 72 20 70 61 6c | 65 74 74 65 73 20 74 6f |your pal|ettes to|
|00002400| 20 64 69 66 66 65 72 65 | 6e 74 20 70 6f 73 73 69 | differe|nt possi|
|00002410| 62 6c 65 20 76 69 64 65 | 6f 20 64 65 76 69 63 65 |ble vide|o device|
|00002420| 73 d1 69 6e 64 69 63 61 | 74 69 6e 67 2c 20 66 6f |s.indica|ting, fo|
|00002430| 72 20 65 78 61 6d 70 6c | 65 2c 20 74 68 61 74 20 |r exampl|e, that |
|00002440| 63 65 72 74 61 69 6e 20 | 63 6f 6c 6f 72 73 20 69 |certain |colors i|
|00002450| 6e 20 74 68 65 20 70 61 | 6c 65 74 74 65 20 73 68 |n the pa|lette sh|
|00002460| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 77 69 74 |ould be |used wit|
|00002470| 68 20 34 2d 62 69 74 20 | 70 69 78 65 6c 20 64 65 |h 4-bit |pixel de|
|00002480| 70 74 68 73 2c 20 74 68 | 61 74 20 61 20 64 69 66 |pths, th|at a dif|
|00002490| 66 65 72 65 6e 74 20 73 | 65 74 20 73 68 6f 75 6c |ferent s|et shoul|
|000024a0| 64 20 62 65 20 75 73 65 | 64 20 77 69 74 68 20 38 |d be use|d with 8|
|000024b0| 2d 62 69 74 20 70 69 78 | 65 6c 20 64 65 70 74 68 |-bit pix|el depth|
|000024c0| 73 2c 20 61 6e 64 20 74 | 68 61 74 20 6e 65 69 74 |s, and t|hat neit|
|000024d0| 68 65 72 20 73 65 74 20 | 73 68 6f 75 6c 64 20 62 |her set |should b|
|000024e0| 65 20 75 73 65 64 20 77 | 69 74 68 20 67 72 61 79 |e used w|ith gray|
|000024f0| 2d 73 63 61 6c 65 20 64 | 65 76 69 63 65 73 2e 20 |-scale d|evices. |
|00002500| 0d 54 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e |.The Pal|ette Man|
|00002510| 61 67 65 72 20 63 61 6e | 20 68 61 6e 64 6c 65 20 |ager can| handle |
|00002520| 64 69 66 66 65 72 65 6e | 74 20 73 63 72 65 65 6e |differen|t screen|
|00002530| 20 64 65 70 74 68 73 20 | 61 63 72 6f 73 73 20 6d | depths |across m|
|00002540| 75 6c 74 69 70 6c 65 20 | 64 65 76 69 63 65 73 2e |ultiple |devices.|
|00002550| 20 49 66 20 74 68 65 20 | 75 73 65 72 20 6d 6f 76 | If the |user mov|
|00002560| 65 73 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |es your |applicat|
|00002570| 69 6f 6e 20 77 69 6e 64 | 6f 77 20 73 6f 20 74 68 |ion wind|ow so th|
|00002580| 61 74 20 69 74 20 6f 76 | 65 72 6c 61 70 73 20 6f |at it ov|erlaps o|
|00002590| 6e 65 20 67 72 61 79 2d | 73 63 61 6c 65 20 73 63 |ne gray-|scale sc|
|000025a0| 72 65 65 6e 2c 20 6f 6e | 65 20 69 6e 64 65 78 65 |reen, on|e indexe|
|000025b0| 64 2d 70 69 78 65 6c 20 | 63 6f 6c 6f 72 20 73 63 |d-pixel |color sc|
|000025c0| 72 65 65 6e 2c 20 61 6e | 64 20 6f 6e 65 20 64 69 |reen, an|d one di|
|000025d0| 72 65 63 74 2d 70 69 78 | 65 6c 20 63 6f 6c 6f 72 |rect-pix|el color|
|000025e0| 20 73 63 72 65 65 6e 2c | 20 74 68 65 20 50 61 6c | screen,| the Pal|
|000025f0| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 63 68 6f |ette Man|ager cho|
|00002600| 6f 73 65 73 20 61 70 70 | 72 6f 70 72 69 61 74 65 |oses app|ropriate|
|00002610| 20 67 72 61 79 73 20 61 | 6e 64 20 63 6f 6c 6f 72 | grays a|nd color|
|00002620| 73 20 66 6f 72 20 61 6c | 6c 20 74 68 72 65 65 2e |s for al|l three.|
|00002630| 20 20 0d 54 68 65 20 50 | 61 6c 65 74 74 65 20 4d | .The P|alette M|
|00002640| 61 6e 61 67 65 72 20 68 | 61 73 20 61 63 63 65 73 |anager h|as acces|
|00002650| 73 20 74 6f 20 61 6c 6c | 20 70 61 6c 65 74 74 65 |s to all| palette|
|00002660| 73 20 75 73 65 64 20 62 | 79 20 61 6c 6c 20 77 69 |s used b|y all wi|
|00002670| 6e 64 6f 77 73 20 74 68 | 72 6f 75 67 68 6f 75 74 |ndows th|roughout|
|00002680| 20 74 68 65 20 73 79 73 | 74 65 6d 2e 20 41 20 73 | the sys|tem. A s|
|00002690| 65 74 20 6f 66 20 64 65 | 66 61 75 6c 74 20 63 6f |et of de|fault co|
|000026a0| 6c 6f 72 20 74 61 62 6c | 65 73 20 66 6f 72 20 64 |lor tabl|es for d|
|000026b0| 65 76 69 63 65 73 20 6f | 66 20 76 61 72 69 6f 75 |evices o|f variou|
|000026c0| 73 20 64 65 70 74 68 73 | 20 65 6e 73 75 72 65 73 |s depths| ensures|
|000026d0| 20 74 68 61 74 20 74 68 | 65 20 50 61 6c 65 74 74 | that th|e Palett|
|000026e0| 65 20 4d 61 6e 61 67 65 | 72 20 61 6c 77 61 79 73 |e Manage|r always|
|000026f0| 20 72 65 74 75 72 6e 73 | 20 74 6f 20 61 20 6b 6e | returns| to a kn|
|00002700| 6f 77 6e 20 73 65 74 20 | 6f 66 20 63 6f 6c 6f 72 |own set |of color|
|00002710| 73 20 77 68 65 6e 20 61 | 6e 20 61 70 70 6c 69 63 |s when a|n applic|
|00002720| 61 74 69 6f 6e 20 74 65 | 72 6d 69 6e 61 74 65 73 |ation te|rminates|
|00002730| 2c 20 61 6e 64 2c 20 77 | 68 65 6e 20 79 6f 75 72 |, and, w|hen your|
|00002740| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 62 65 67 | applica|tion beg|
|00002750| 69 6e 73 20 65 78 65 63 | 75 74 69 6e 67 2c 20 69 |ins exec|uting, i|
|00002760| 74 20 65 78 65 63 75 74 | 65 73 20 69 6e 20 61 6e |t execut|es in an|
|00002770| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 65 71 75 | environ|ment equ|
|00002780| 69 70 70 65 64 20 77 69 | 74 68 20 61 73 20 62 72 |ipped wi|th as br|
|00002790| 6f 61 64 20 61 20 72 61 | 6e 67 65 20 6f 66 20 63 |oad a ra|nge of c|
|000027a0| 6f 6c 6f 72 73 20 6f 72 | 20 67 72 61 79 73 20 61 |olors or| grays a|
|000027b0| 73 20 74 68 65 20 68 61 | 72 64 77 61 72 65 20 61 |s the ha|rdware a|
|000027c0| 6c 6c 6f 77 73 2e 0d 0d | 50 61 6c 65 74 74 65 20 |llows...|Palette |
|000027d0| 46 6f 72 6d 61 74 0d 0d | 41 20 70 61 6c 65 74 74 |Format..|A palett|
|000027e0| 65 20 69 73 20 61 20 64 | 61 74 61 20 73 74 72 75 |e is a d|ata stru|
|000027f0| 63 74 75 72 65 20 74 68 | 61 74 20 63 6f 6e 74 61 |cture th|at conta|
|00002800| 69 6e 73 20 61 20 68 65 | 61 64 65 72 20 61 6e 64 |ins a he|ader and|
|00002810| 20 61 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 | a colle|ction of|
|00002820| 20 63 6f 6c 6f 72 20 69 | 6e 66 6f 72 6d 61 74 69 | color i|nformati|
|00002830| 6f 6e 20 72 65 63 6f 72 | 64 73 20 28 6f 66 20 74 |on recor|ds (of t|
|00002840| 79 70 65 20 43 6f 6c 6f | 72 49 6e 66 6f 29 2c 20 |ype Colo|rInfo), |
|00002850| 6f 6e 65 20 66 6f 72 20 | 65 61 63 68 20 63 6f 6c |one for |each col|
|00002860| 6f 72 20 69 6e 20 74 68 | 65 20 70 61 6c 65 74 74 |or in th|e palett|
|00002870| 65 2e 20 54 68 65 20 68 | 65 61 64 65 72 20 63 6f |e. The h|eader co|
|00002880| 6e 74 61 69 6e 73 20 74 | 68 65 20 6e 75 6d 62 65 |ntains t|he numbe|
|00002890| 72 20 6f 66 20 43 6f 6c | 6f 72 49 6e 66 6f 20 72 |r of Col|orInfo r|
|000028a0| 65 63 6f 72 64 73 20 69 | 6e 20 74 68 65 20 70 61 |ecords i|n the pa|
|000028b0| 6c 65 74 74 65 20 61 73 | 20 77 65 6c 6c 20 61 73 |lette as| well as|
|000028c0| 20 70 72 69 76 61 74 65 | 20 66 69 65 6c 64 73 20 | private| fields |
|000028d0| 75 73 65 64 20 62 79 20 | 74 68 65 20 50 61 6c 65 |used by |the Pale|
|000028e0| 74 74 65 20 4d 61 6e 61 | 67 65 72 2e 20 0d 54 59 |tte Mana|ger. .TY|
|000028f0| 50 45 09 20 50 61 6c 65 | 74 74 65 20 3d 20 0d 52 |PE. Pale|tte = .R|
|00002900| 45 43 4f 52 44 0d 09 70 | 6d 45 6e 74 72 69 65 73 |ECORD..p|mEntries|
|00002910| 3a 09 09 09 09 09 49 6e | 74 65 67 65 72 3b 09 09 |:.....In|teger;..|
|00002920| 09 09 09 09 09 09 09 7b | 65 6e 74 72 69 65 73 20 |.......{|entries |
|00002930| 69 6e 20 70 6d 49 6e 66 | 6f 7d 0d 09 70 6d 44 61 |in pmInf|o}..pmDa|
|00002940| 74 61 46 69 65 6c 64 73 | 3a 09 09 09 09 09 41 52 |taFields|:.....AR|
|00002950| 52 41 59 5b 30 2e 2e 36 | 5d 20 4f 46 20 49 6e 74 |RAY[0..6|] OF Int|
|00002960| 65 67 65 72 3b 09 09 09 | 09 09 09 09 09 09 7b 70 |eger;...|......{p|
|00002970| 72 69 76 61 74 65 20 66 | 69 65 6c 64 73 7d 0d 09 |rivate f|ields}..|
|00002980| 70 6d 49 6e 66 6f 3a 09 | 09 09 09 09 41 52 52 41 |pmInfo:.|....ARRA|
|00002990| 59 5b 30 2e 2e 30 5d 20 | 4f 46 20 43 6f 6c 6f 72 |Y[0..0] |OF Color|
|000029a0| 49 6e 66 6f 3b 09 09 09 | 09 09 09 09 09 09 7b 63 |Info;...|......{c|
|000029b0| 6f 6c 6f 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |olor inf|ormation|
|000029c0| 7d 0d 45 4e 44 3b 20 0d | 45 61 63 68 20 63 6f 6c |}.END; .|Each col|
|000029d0| 6f 72 20 69 73 20 6c 69 | 73 74 65 64 20 61 73 20 |or is li|sted as |
|000029e0| 70 61 72 74 20 6f 66 20 | 61 20 43 6f 6c 6f 72 49 |part of |a ColorI|
|000029f0| 6e 66 6f 20 72 65 63 6f | 72 64 2c 20 77 68 69 63 |nfo reco|rd, whic|
|00002a00| 68 20 63 6f 6d 70 72 69 | 73 65 73 20 61 6e 20 52 |h compri|ses an R|
|00002a10| 47 42 20 63 6f 6c 6f 72 | 20 76 61 6c 75 65 2c 20 |GB color| value, |
|00002a20| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 64 65 73 63 |informat|ion desc|
|00002a30| 72 69 62 69 6e 67 20 68 | 6f 77 20 74 68 65 20 63 |ribing h|ow the c|
|00002a40| 6f 6c 6f 72 20 69 73 20 | 74 6f 20 62 65 20 75 73 |olor is |to be us|
|00002a50| 65 64 2c 20 61 20 74 6f | 6c 65 72 61 6e 63 65 20 |ed, a to|lerance |
|00002a60| 76 61 6c 75 65 20 66 6f | 72 20 63 6f 6c 6f 72 73 |value fo|r colors|
|00002a70| 20 74 68 61 74 20 6e 65 | 65 64 20 6f 6e 6c 79 20 | that ne|ed only |
|00002a80| 62 65 20 61 70 70 72 6f | 78 69 6d 61 74 65 64 2c |be appro|ximated,|
|00002a90| 20 61 6e 64 20 70 72 69 | 76 61 74 65 20 66 69 65 | and pri|vate fie|
|00002aa0| 6c 64 73 2e 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |lds. You| should |
|00002ab0| 6e 6f 74 20 63 72 65 61 | 74 65 20 61 6e 64 20 6d |not crea|te and m|
|00002ac0| 6f 64 69 66 79 20 74 68 | 65 20 70 75 62 6c 69 63 |odify th|e public|
|00002ad0| 20 66 69 65 6c 64 73 20 | 64 69 72 65 63 74 6c 79 | fields |directly|
|00002ae0| 3b 20 69 6e 73 74 65 61 | 64 2c 20 75 73 65 20 74 |; instea|d, use t|
|00002af0| 68 65 20 50 61 6c 65 74 | 74 65 20 4d 61 6e 61 67 |he Palet|te Manag|
|00002b00| 65 72 20 72 6f 75 74 69 | 6e 65 73 2e 0d 54 59 50 |er routi|nes..TYP|
|00002b10| 45 09 20 43 6f 6c 6f 72 | 49 6e 66 6f 20 3d 20 0d |E. Color|Info = .|
|00002b20| 52 45 43 4f 52 44 0d 09 | 63 69 52 47 42 3a 09 09 |RECORD..|ciRGB:..|
|00002b30| 09 09 09 52 47 42 43 6f | 6c 6f 72 3b 09 09 09 09 |...RGBCo|lor;....|
|00002b40| 09 7b 61 62 73 6f 6c 75 | 74 65 20 52 47 42 20 76 |.{absolu|te RGB v|
|00002b50| 61 6c 75 65 73 7d 0d 09 | 63 69 55 73 61 67 65 3a |alues}..|ciUsage:|
|00002b60| 09 09 09 09 09 49 6e 74 | 65 67 65 72 3b 09 09 09 |.....Int|eger;...|
|00002b70| 09 09 7b 63 6f 6c 6f 72 | 20 75 73 61 67 65 20 69 |..{color| usage i|
|00002b80| 6e 66 6f 72 6d 61 74 69 | 6f 6e 7d 0d 09 63 69 54 |nformati|on}..ciT|
|00002b90| 6f 6c 65 72 61 6e 63 65 | 3a 09 09 09 09 09 49 6e |olerance|:.....In|
|00002ba0| 74 65 67 65 72 3b 09 09 | 09 09 09 7b 74 6f 6c 65 |teger;..|...{tole|
|00002bb0| 72 61 6e 63 65 20 76 61 | 6c 75 65 7d 0d 09 63 69 |rance va|lue}..ci|
|00002bc0| 44 61 74 61 46 69 65 6c | 64 73 3a 09 09 09 09 09 |DataFiel|ds:.....|
|00002bd0| 41 52 52 41 59 5b 30 2e | 2e 32 5d 20 4f 46 20 49 |ARRAY[0.|.2] OF I|
|00002be0| 6e 74 65 67 65 72 3b 20 | 7b 70 72 69 76 61 74 65 |nteger; |{private|
|00002bf0| 20 66 69 65 6c 64 73 7d | 0d 45 4e 44 3b 20 0d 59 | fields}|.END; .Y|
|00002c00| 6f 75 20 63 61 6e 20 63 | 72 65 61 74 65 20 70 61 |ou can c|reate pa|
|00002c10| 6c 65 74 74 65 73 20 66 | 72 6f 6d 20 70 72 65 76 |lettes f|rom prev|
|00002c20| 69 6f 75 73 6c 79 2d 63 | 72 65 61 74 65 64 20 72 |iously-c|reated r|
|00002c30| 65 73 6f 75 72 63 65 73 | 20 6f 66 20 74 79 70 65 |esources| of type|
|00002c40| 20 27 70 6c 74 74 27 2c | 20 66 72 6f 6d 20 6f 74 | 'pltt',| from ot|
|00002c50| 68 65 72 20 70 61 6c 65 | 74 74 65 73 2c 20 61 6e |her pale|ttes, an|
|00002c60| 64 20 66 72 6f 6d 20 63 | 6f 6c 6f 72 20 74 61 62 |d from c|olor tab|
|00002c70| 6c 65 73 2e 0d 0d 43 6f | 6c 6f 72 73 20 69 6e 20 |les...Co|lors in |
|00002c80| 61 20 50 61 6c 65 74 74 | 65 0d 0d 57 68 65 6e 20 |a Palett|e..When |
|00002c90| 74 68 65 20 75 73 65 72 | 20 61 63 74 69 76 61 74 |the user| activat|
|00002ca0| 65 73 20 61 20 77 69 6e | 64 6f 77 2c 20 74 68 65 |es a win|dow, the|
|00002cb0| 20 50 61 6c 65 74 74 65 | 20 4d 61 6e 61 67 65 72 | Palette| Manager|
|00002cc0| 20 65 78 61 6d 69 6e 65 | 73 20 74 68 65 20 77 69 | examine|s the wi|
|00002cd0| 6e 64 6f 77 20 61 6e 64 | 20 69 74 73 20 70 61 6c |ndow and| its pal|
|00002ce0| 65 74 74 65 2c 20 69 66 | 20 69 74 20 68 61 73 20 |ette, if| it has |
|00002cf0| 6f 6e 65 2c 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |one, to |determin|
|00002d00| 65 20 68 6f 77 20 6d 61 | 6e 79 20 73 63 72 65 65 |e how ma|ny scree|
|00002d10| 6e 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 74 6f |ns the w|indow to|
|00002d20| 75 63 68 65 73 20 61 6e | 64 20 77 68 65 74 68 65 |uches an|d whethe|
|00002d30| 72 20 63 6f 6c 6f 72 73 | 20 6e 65 65 64 20 74 6f |r colors| need to|
|00002d40| 20 62 65 20 6c 6f 61 64 | 65 64 20 69 6e 74 6f 20 | be load|ed into |
|00002d50| 61 6e 79 20 64 65 76 69 | 63 65 d5 73 20 63 6f 6c |any devi|ce.s col|
|00002d60| 6f 72 20 6c 6f 6f 6b 75 | 70 20 74 61 62 6c 65 2e |or looku|p table.|
|00002d70| 20 49 66 20 79 6f 75 72 | 20 77 69 6e 64 6f 77 20 | If your| window |
|00002d80| 72 65 71 75 69 72 65 73 | 20 31 38 30 20 73 68 61 |requires| 180 sha|
|00002d90| 64 65 73 20 6f 66 20 67 | 72 65 65 6e 2c 20 66 6f |des of g|reen, fo|
|00002da0| 72 20 65 78 61 6d 70 6c | 65 2c 20 63 68 61 6e 63 |r exampl|e, chanc|
|00002db0| 65 73 20 61 72 65 20 74 | 68 65 20 63 75 72 72 65 |es are t|he curre|
|00002dc0| 6e 74 20 64 65 76 69 63 | 65 20 63 6f 6c 6f 72 20 |nt devic|e color |
|00002dd0| 74 61 62 6c 65 73 20 6c | 61 63 6b 20 74 68 65 20 |tables l|ack the |
|00002de0| 6e 65 63 65 73 73 61 72 | 79 20 63 6f 6c 6f 72 73 |necessar|y colors|
|00002df0| 2e 20 57 68 65 74 68 65 | 72 20 74 68 65 20 50 61 |. Whethe|r the Pa|
|00002e00| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 6d 75 |lette Ma|nager mu|
|00002e10| 73 74 20 63 68 61 6e 67 | 65 20 61 20 63 6f 6c 6f |st chang|e a colo|
|00002e20| 72 20 74 61 62 6c 65 20 | 64 65 70 65 6e 64 73 20 |r table |depends |
|00002e30| 6f 6e 20 77 68 61 74 20 | 63 6f 6c 6f 72 73 20 61 |on what |colors a|
|00002e40| 72 65 20 69 6e 20 69 74 | 20 61 6c 72 65 61 64 79 |re in it| already|
|00002e50| 2c 20 77 68 61 74 20 63 | 6f 6c 6f 72 73 20 79 6f |, what c|olors yo|
|00002e60| 75 20 61 73 6b 20 66 6f | 72 2c 20 61 6e 64 20 74 |u ask fo|r, and t|
|00002e70| 68 65 20 63 61 74 65 67 | 6f 72 69 65 73 20 69 6e |he categ|ories in|
|00002e80| 74 6f 20 77 68 69 63 68 | 20 79 6f 75 72 20 63 6f |to which| your co|
|00002e90| 6c 6f 72 73 20 66 61 6c | 6c 2e 20 0d 4e 6f 74 65 |lors fal|l. .Note|
|00002ea0| 0d 59 6f 75 20 63 61 6e | 20 63 72 65 61 74 65 20 |.You can| create |
|00002eb0| 61 20 64 65 66 61 75 6c | 74 20 70 61 6c 65 74 74 |a defaul|t palett|
|00002ec0| 65 20 66 6f 72 20 74 68 | 65 20 50 61 6c 65 74 74 |e for th|e Palett|
|00002ed0| 65 20 4d 61 6e 61 67 65 | 72 20 74 6f 20 75 73 65 |e Manage|r to use|
|00002ee0| 20 77 68 65 6e 20 6f 6e | 65 20 6f 66 20 79 6f 75 | when on|e of you|
|00002ef0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |r applic|ation.s |
|00002f00| 77 69 6e 64 6f 77 73 20 | 64 6f 65 73 6e d5 74 20 |windows |doesn.t |
|00002f10| 68 61 76 65 20 61 20 70 | 61 6c 65 74 74 65 20 73 |have a p|alette s|
|00002f20| 70 65 63 69 66 69 65 64 | 2e 20 28 54 68 69 73 20 |pecified|. (This |
|00002f30| 64 65 66 61 75 6c 74 20 | 70 61 6c 65 74 74 65 20 |default |palette |
|00002f40| 6d 61 79 20 62 65 20 65 | 73 70 65 63 69 61 6c 6c |may be e|speciall|
|00002f50| 79 20 75 73 65 66 75 6c | 20 74 6f 20 63 6f 6c 6f |y useful| to colo|
|00002f60| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 74 |r applic|ations t|
|00002f70| 68 61 74 20 75 73 65 20 | 62 6c 61 63 6b 2d 61 6e |hat use |black-an|
|00002f80| 64 2d 77 68 69 74 65 20 | 64 69 61 6c 6f 67 20 61 |d-white |dialog a|
|00002f90| 6e 64 20 61 6c 65 72 74 | 20 62 6f 78 65 73 2e 29 |nd alert| boxes.)|
|00002fa0| 20 13 75 0d 0d 54 68 65 | 20 50 61 6c 65 74 74 65 | .u..The| Palette|
|00002fb0| 20 4d 61 6e 61 67 65 72 | 20 74 72 61 63 6b 73 20 | Manager| tracks |
|00002fc0| 63 6f 6c 6f 72 73 20 69 | 6e 20 75 73 61 67 65 20 |colors i|n usage |
|00002fd0| 63 61 74 65 67 6f 72 69 | 65 73 2c 20 77 68 69 63 |categori|es, whic|
|00002fe0| 68 20 79 6f 75 20 73 70 | 65 63 69 66 79 20 74 6f |h you sp|ecify to|
|00002ff0| 20 63 6f 6e 74 72 6f 6c | 20 74 68 65 20 77 61 79 | control| the way|
|00003000| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e | the Pal|ette Man|
|00003010| 61 67 65 72 20 61 6c 6c | 6f 63 61 74 65 73 20 79 |ager all|ocates y|
|00003020| 6f 75 72 20 70 61 6c 65 | 74 74 65 d5 73 20 63 6f |our pale|tte.s co|
|00003030| 6c 6f 72 73 2e 20 59 6f | 75 20 61 73 73 69 67 6e |lors. Yo|u assign|
|00003040| 20 75 73 61 67 65 20 63 | 61 74 65 67 6f 72 69 65 | usage c|ategorie|
|00003050| 73 20 74 6f 20 63 6f 6c | 6f 72 73 20 77 68 65 6e |s to col|ors when|
|00003060| 20 79 6f 75 20 63 72 65 | 61 74 65 20 79 6f 75 72 | you cre|ate your|
|00003070| 20 70 61 6c 65 74 74 65 | 2c 20 61 6e 64 20 79 6f | palette|, and yo|
|00003080| 75 20 63 61 6e 20 63 68 | 61 6e 67 65 20 74 68 65 |u can ch|ange the|
|00003090| 20 63 61 74 65 67 6f 72 | 69 65 73 20 62 79 20 75 | categor|ies by u|
|000030a0| 73 69 6e 67 20 50 61 6c | 65 74 74 65 20 4d 61 6e |sing Pal|ette Man|
|000030b0| 61 67 65 72 20 72 6f 75 | 74 69 6e 65 73 2e 20 59 |ager rou|tines. Y|
|000030c0| 6f 75 20 63 61 6e 20 61 | 73 73 69 67 6e 20 61 6e |ou can a|ssign an|
|000030d0| 79 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |y of the| followi|
|000030e0| 6e 67 20 63 61 74 65 67 | 6f 72 69 65 73 20 74 6f |ng categ|ories to|
|000030f0| 20 65 61 63 68 20 63 6f | 6c 6f 72 20 69 6e 20 79 | each co|lor in y|
|00003100| 6f 75 72 20 70 61 6c 65 | 74 74 65 2e 20 28 4e 6f |our pale|tte. (No|
|00003110| 74 65 20 74 68 61 74 20 | 73 6f 6d 65 20 6f 66 20 |te that |some of |
|00003120| 74 68 65 20 63 61 74 65 | 67 6f 72 69 65 73 20 63 |the cate|gories c|
|00003130| 61 6e 20 62 65 20 63 6f | 6d 62 69 6e 65 64 2e 29 |an be co|mbined.)|
|00003140| 0d 6e 09 41 20 63 6f 6c | 6f 72 20 73 70 65 63 69 |.n.A col|or speci|
|00003150| 66 69 65 64 20 61 73 20 | 63 6f 75 72 74 65 6f 75 |fied as |courteou|
|00003160| 73 20 61 63 63 65 70 74 | 73 20 77 68 61 74 65 76 |s accept|s whatev|
|00003170| 65 72 20 76 61 6c 75 65 | 20 74 68 65 20 43 6f 6c |er value| the Col|
|00003180| 6f 72 20 4d 61 6e 61 67 | 65 72 20 64 65 74 65 72 |or Manag|er deter|
|00003190| 6d 69 6e 65 73 20 74 6f | 20 62 65 20 74 68 65 20 |mines to| be the |
|000031a0| 63 6c 6f 73 65 73 74 20 | 6d 61 74 63 68 20 63 75 |closest |match cu|
|000031b0| 72 72 65 6e 74 6c 79 20 | 61 76 61 69 6c 61 62 6c |rrently |availabl|
|000031c0| 65 20 69 6e 20 74 68 65 | 20 63 6f 6c 6f 72 20 74 |e in the| color t|
|000031d0| 61 62 6c 65 2e 20 4f 6e | 20 69 6e 64 65 78 65 64 |able. On| indexed|
|000031e0| 20 64 65 76 69 63 65 73 | 2c 20 74 68 65 20 50 61 | devices|, the Pa|
|000031f0| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 6c 65 |lette Ma|nager le|
|00003200| 74 73 20 74 68 65 20 43 | 6f 6c 6f 72 20 4d 61 6e |ts the C|olor Man|
|00003210| 61 67 65 72 20 73 65 6c | 65 63 74 20 61 70 70 72 |ager sel|ect appr|
|00003220| 6f 70 72 69 61 74 65 20 | 70 69 78 65 6c 20 76 61 |opriate |pixel va|
|00003230| 6c 75 65 73 20 66 72 6f | 6d 20 74 68 6f 73 65 20 |lues fro|m those |
|00003240| 61 6c 72 65 61 64 79 20 | 69 6e 20 74 68 65 20 64 |already |in the d|
|00003250| 65 76 69 63 65 20 63 6f | 6c 6f 72 20 74 61 62 6c |evice co|lor tabl|
|00003260| 65 2e 20 4f 6e 20 64 69 | 72 65 63 74 20 64 65 76 |e. On di|rect dev|
|00003270| 69 63 65 73 2c 20 74 68 | 65 20 50 61 6c 65 74 74 |ices, th|e Palett|
|00003280| 65 20 4d 61 6e 61 67 65 | 72 20 6d 61 74 63 68 65 |e Manage|r matche|
|00003290| 73 20 63 6f 75 72 74 65 | 6f 75 73 20 63 6f 6c 6f |s courte|ous colo|
|000032a0| 72 73 20 61 73 20 63 6c | 6f 73 65 6c 79 20 61 73 |rs as cl|osely as|
|000032b0| 20 74 68 65 20 68 61 72 | 64 77 61 72 65 20 61 6c | the har|dware al|
|000032c0| 6c 6f 77 73 2e 20 43 6f | 75 72 74 65 6f 75 73 20 |lows. Co|urteous |
|000032d0| 63 6f 6c 6f 72 73 20 68 | 61 76 65 20 6e 6f 20 73 |colors h|ave no s|
|000032e0| 70 65 63 69 61 6c 20 70 | 72 6f 70 65 72 74 69 65 |pecial p|ropertie|
|000032f0| 73 2c 20 62 75 74 20 74 | 68 65 69 72 20 75 73 65 |s, but t|heir use|
|00003300| 20 6f 66 66 65 72 73 20 | 79 6f 75 20 61 20 63 6f | offers |you a co|
|00003310| 6e 76 65 6e 69 65 6e 74 | 20 77 61 79 20 74 6f 20 |nvenient| way to |
|00003320| 6e 61 6d 65 20 61 6e 64 | 20 68 6f 6c 64 20 63 6f |name and| hold co|
|00003330| 6c 6f 72 20 63 6f 6c 6c | 65 63 74 69 6f 6e 73 2e |lor coll|ections.|
|00003340| 20 0d 6e 09 41 20 63 6f | 6c 6f 72 20 73 70 65 63 | .n.A co|lor spec|
|00003350| 69 66 69 65 64 20 61 73 | 20 74 6f 6c 65 72 61 6e |ified as| toleran|
|00003360| 74 20 61 6c 73 6f 20 61 | 63 63 65 70 74 73 20 74 |t also a|ccepts t|
|00003370| 68 65 20 43 6f 6c 6f 72 | 20 4d 61 6e 61 67 65 72 |he Color| Manager|
|00003380| d5 73 20 63 68 6f 69 63 | 65 73 20 6f 6e 20 61 6e |.s choic|es on an|
|00003390| 20 69 6e 64 65 78 65 64 | 20 64 65 76 69 63 65 2c | indexed| device,|
|000033a0| 20 62 75 74 20 75 6e 6c | 69 6b 65 20 61 20 63 6f | but unl|ike a co|
|000033b0| 75 72 74 65 6f 75 73 20 | 63 6f 6c 6f 72 2c 20 61 |urteous |color, a|
|000033c0| 20 74 6f 6c 65 72 61 6e | 74 20 63 6f 6c 6f 72 20 | toleran|t color |
|000033d0| 73 70 65 63 69 66 69 65 | 73 20 61 6e 20 61 63 63 |specifie|s an acc|
|000033e0| 65 70 74 61 62 6c 65 20 | 72 61 6e 67 65 20 66 6f |eptable |range fo|
|000033f0| 72 20 63 6f 6c 6f 72 20 | 6d 61 74 63 68 69 6e 67 |r color |matching|
|00003400| 2e 20 49 66 20 6e 6f 20 | 63 6f 6c 6f 72 20 69 6e |. If no |color in|
|00003410| 20 74 68 65 20 64 65 76 | 69 63 65 d5 73 20 63 6f | the dev|ice.s co|
|00003420| 6c 6f 72 20 74 61 62 6c | 65 20 66 61 6c 6c 73 20 |lor tabl|e falls |
|00003430| 77 69 74 68 69 6e 20 74 | 68 61 74 20 72 61 6e 67 |within t|hat rang|
|00003440| 65 2c 20 74 68 65 20 50 | 61 6c 65 74 74 65 20 4d |e, the P|alette M|
|00003450| 61 6e 61 67 65 72 20 6c | 6f 61 64 73 20 74 68 65 |anager l|oads the|
|00003460| 20 63 6f 6c 6f 72 20 72 | 65 71 75 69 72 65 64 2e | color r|equired.|
|00003470| 20 4f 6e 20 64 69 72 65 | 63 74 20 64 65 76 69 63 | On dire|ct devic|
|00003480| 65 73 2c 20 74 68 65 20 | 50 61 6c 65 74 74 65 20 |es, the |Palette |
|00003490| 4d 61 6e 61 67 65 72 20 | 6d 61 74 63 68 65 73 20 |Manager |matches |
|000034a0| 74 6f 6c 65 72 61 6e 74 | 20 63 6f 6c 6f 72 73 20 |tolerant| colors |
|000034b0| 61 73 20 63 6c 6f 73 65 | 6c 79 20 61 73 20 74 68 |as close|ly as th|
|000034c0| 65 20 68 61 72 64 77 61 | 72 65 20 61 6c 6c 6f 77 |e hardwa|re allow|
|000034d0| 73 2e 0d 6e 09 41 20 63 | 6f 6c 6f 72 20 73 70 65 |s..n.A c|olor spe|
|000034e0| 63 69 66 69 65 64 20 61 | 73 20 61 6e 69 6d 61 74 |cified a|s animat|
|000034f0| 65 64 20 69 73 20 75 73 | 65 64 20 66 6f 72 20 73 |ed is us|ed for s|
|00003500| 70 65 63 69 61 6c 20 63 | 6f 6c 6f 72 20 61 6e 69 |pecial c|olor ani|
|00003510| 6d 61 74 69 6f 6e 20 65 | 66 66 65 63 74 73 2c 20 |mation e|ffects, |
|00003520| 61 73 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |as descr|ibed in |
|00003530| d2 41 6e 69 6d 61 74 65 | 64 20 43 6f 6c 6f 72 73 |.Animate|d Colors|
|00003540| d3 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 6e 20 70 |. beginn|ing on p|
|00003550| 61 67 65 20 31 2d 31 33 | 2e 20 41 6e 69 6d 61 74 |age 1-13|. Animat|
|00003560| 65 64 20 63 6f 6c 6f 72 | 73 20 61 72 65 20 72 65 |ed color|s are re|
|00003570| 73 65 72 76 65 64 20 62 | 79 20 61 20 70 61 6c 65 |served b|y a pale|
|00003580| 74 74 65 20 75 6e 74 69 | 6c 20 69 74 73 20 77 69 |tte unti|l its wi|
|00003590| 6e 64 6f 77 20 69 73 20 | 63 6c 6f 73 65 64 2c 20 |ndow is |closed, |
|000035a0| 61 6e 64 20 75 6e 74 69 | 6c 20 74 68 65 6e 20 74 |and unti|l then t|
|000035b0| 68 65 69 72 20 73 70 61 | 63 65 73 20 61 72 65 20 |heir spa|ces are |
|000035c0| 75 6e 61 76 61 69 6c 61 | 62 6c 65 20 74 6f 20 28 |unavaila|ble to (|
|000035d0| 61 6e 64 20 63 61 6e d5 | 74 20 62 65 20 75 73 65 |and can.|t be use|
|000035e0| 64 20 74 6f 20 6d 61 74 | 63 68 29 20 61 6e 79 20 |d to mat|ch) any |
|000035f0| 6f 74 68 65 72 20 72 65 | 71 75 65 73 74 20 66 6f |other re|quest fo|
|00003600| 72 20 63 6f 6c 6f 72 2e | 20 54 68 65 20 65 66 66 |r color.| The eff|
|00003610| 65 63 74 73 20 6f 66 20 | 63 6f 6c 6f 72 20 61 6e |ects of |color an|
|00003620| 69 6d 61 74 69 6f 6e 20 | 64 65 70 65 6e 64 20 6f |imation |depend o|
|00003630| 6e 20 74 68 65 20 65 78 | 69 73 74 65 6e 63 65 20 |n the ex|istence |
|00003640| 6f 66 20 61 20 64 65 76 | 69 63 65 20 63 6f 6c 6f |of a dev|ice colo|
|00003650| 72 20 74 61 62 6c 65 2c | 20 61 6e 64 2c 20 62 65 |r table,| and, be|
|00003660| 63 61 75 73 65 20 61 20 | 64 69 72 65 63 74 20 64 |cause a |direct d|
|00003670| 65 76 69 63 65 20 64 6f | 65 73 6e d5 74 20 68 61 |evice do|esn.t ha|
|00003680| 76 65 20 6f 6e 65 2c 20 | 63 6f 6c 6f 72 20 61 6e |ve one, |color an|
|00003690| 69 6d 61 74 69 6f 6e 20 | 68 61 73 20 6e 6f 20 65 |imation |has no e|
|000036a0| 66 66 65 63 74 20 6f 6e | 20 61 20 64 69 72 65 63 |ffect on| a direc|
|000036b0| 74 20 64 65 76 69 63 65 | d5 73 20 64 69 73 70 6c |t device|.s displ|
|000036c0| 61 79 2e 20 49 66 20 79 | 6f 75 72 20 77 69 6e 64 |ay. If y|our wind|
|000036d0| 6f 77 20 73 70 61 6e 73 | 20 74 77 6f 20 64 65 76 |ow spans| two dev|
|000036e0| 69 63 65 73 2c 20 6f 6e | 65 20 69 6e 64 65 78 65 |ices, on|e indexe|
|000036f0| 64 20 61 6e 64 20 6f 6e | 65 20 64 69 72 65 63 74 |d and on|e direct|
|00003700| 2c 20 74 68 65 20 50 61 | 6c 65 74 74 65 20 4d 61 |, the Pa|lette Ma|
|00003710| 6e 61 67 65 72 20 69 73 | 20 64 65 78 74 65 72 6f |nager is| dextero|
|00003720| 75 73 20 65 6e 6f 75 67 | 68 20 74 6f 20 61 6e 69 |us enoug|h to ani|
|00003730| 6d 61 74 65 20 74 68 65 | 20 70 6f 72 74 69 6f 6e |mate the| portion|
|00003740| 20 6f 6e 20 74 68 65 20 | 69 6e 64 65 78 65 64 20 | on the |indexed |
|00003750| 64 65 76 69 63 65 d5 73 | 20 73 63 72 65 65 6e 0d |device.s| screen.|
|00003760| 6e 09 41 20 63 6f 6c 6f | 72 20 73 70 65 63 69 66 |n.A colo|r specif|
|00003770| 69 65 64 20 61 73 20 65 | 78 70 6c 69 63 69 74 20 |ied as e|xplicit |
|00003780| 73 70 65 63 69 66 69 65 | 73 20 61 6e 20 69 6e 64 |specifie|s an ind|
|00003790| 65 78 20 76 61 6c 75 65 | 2c 20 72 61 74 68 65 72 |ex value|, rather|
|000037a0| 20 74 68 61 6e 20 61 6e | 20 52 47 42 20 63 6f 6c | than an| RGB col|
|000037b0| 6f 72 2c 20 61 6e 64 20 | 61 6c 77 61 79 73 20 67 |or, and |always g|
|000037c0| 65 6e 65 72 61 74 65 73 | 20 74 68 65 20 63 6f 72 |enerates| the cor|
|000037d0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 65 6e 74 72 79 |respondi|ng entry|
|000037e0| 20 66 72 6f 6d 20 74 68 | 65 20 64 65 76 69 63 65 | from th|e device|
|000037f0| d5 73 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 2e 20 |.s color| table. |
|00003800| 45 78 70 6c 69 63 69 74 | 20 63 6f 6c 6f 72 73 20 |Explicit| colors |
|00003810| 61 72 65 20 75 73 65 66 | 75 6c 20 69 66 20 79 6f |are usef|ul if yo|
|00003820| 75 20 77 69 73 68 20 74 | 6f 20 64 69 73 70 6c 61 |u wish t|o displa|
|00003830| 79 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |y the co|ntents o|
|00003840| 66 20 61 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 d1 |f a colo|r table.|
|00003850| 66 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 6f 20 |for exam|ple, to |
|00003860| 64 69 73 70 6c 61 79 20 | 74 6f 20 61 20 75 73 65 |display |to a use|
|00003870| 72 20 73 6f 6d 65 20 6f | 72 20 61 6c 6c 20 6f 66 |r some o|r all of|
|00003880| 20 74 68 65 20 63 6f 6c | 6f 72 73 20 61 63 74 75 | the col|ors actu|
|00003890| 61 6c 6c 79 20 61 76 61 | 69 6c 61 62 6c 65 2e 0d |ally ava|ilable..|
|000038a0| 6e 09 41 20 63 6f 6c 6f | 72 20 73 70 65 63 69 66 |n.A colo|r specif|
|000038b0| 69 65 64 20 61 73 20 69 | 6e 68 69 62 69 74 65 64 |ied as i|nhibited|
|000038c0| 20 69 73 20 70 72 65 76 | 65 6e 74 65 64 20 66 72 | is prev|ented fr|
|000038d0| 6f 6d 20 61 70 70 65 61 | 72 69 6e 67 20 6f 6e 20 |om appea|ring on |
|000038e0| 63 6f 6c 6f 72 20 61 6e | 64 20 67 72 61 79 2d 73 |color an|d gray-s|
|000038f0| 63 61 6c 65 20 64 65 76 | 69 63 65 73 20 6f 66 20 |cale dev|ices of |
|00003900| 73 70 65 63 69 66 69 65 | 64 20 70 69 78 65 6c 20 |specifie|d pixel |
|00003910| 64 65 70 74 68 73 2e 20 | 59 6f 75 20 61 6c 77 61 |depths. |You alwa|
|00003920| 79 73 20 75 73 65 20 69 | 6e 68 69 62 69 74 65 64 |ys use i|nhibited|
|00003930| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 63 6f 6d 62 69 | colors |in combi|
|00003940| 6e 61 74 69 6f 6e 20 77 | 69 74 68 20 6f 74 68 65 |nation w|ith othe|
|00003950| 72 20 75 73 61 67 65 20 | 63 61 74 65 67 6f 72 69 |r usage |categori|
|00003960| 65 73 2e 20 59 6f 75 20 | 63 61 6e 20 63 72 65 61 |es. You |can crea|
|00003970| 74 65 20 61 20 6c 61 72 | 67 65 20 70 61 6c 65 74 |te a lar|ge palet|
|00003980| 74 65 d1 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |te.for e|xample, |
|00003990| 77 69 74 68 20 74 77 6f | 20 64 69 66 66 65 72 65 |with two| differe|
|000039a0| 6e 74 20 73 65 74 73 20 | 6f 66 20 63 6f 6c 6f 72 |nt sets |of color|
|000039b0| 20 72 61 6e 67 65 73 2c | 20 6f 6e 65 20 6f 70 74 | ranges,| one opt|
|000039c0| 69 6d 69 7a 65 64 20 66 | 6f 72 20 61 20 34 2d 62 |imized f|or a 4-b|
|000039d0| 69 74 20 64 65 76 69 63 | 65 2c 20 74 68 65 20 6f |it devic|e, the o|
|000039e0| 74 68 65 72 20 6f 70 74 | 69 6d 69 7a 65 64 20 66 |ther opt|imized f|
|000039f0| 6f 72 20 61 6e 20 38 2d | 62 69 74 20 64 65 76 69 |or an 8-|bit devi|
|00003a00| 63 65 d1 61 6e 64 20 74 | 68 65 6e 20 69 6e 68 69 |ce.and t|hen inhi|
|00003a10| 62 69 74 20 63 6f 6c 6f | 72 73 20 6f 6e 20 74 68 |bit colo|rs on th|
|00003a20| 65 20 64 65 76 69 63 65 | 73 20 66 6f 72 20 77 68 |e device|s for wh|
|00003a30| 69 63 68 20 74 68 65 79 | 20 61 72 65 20 6e 6f 74 |ich they| are not|
|00003a40| 20 69 6e 74 65 6e 64 65 | 64 2e 0d 6e 09 43 6f 6c | intende|d..n.Col|
|00003a50| 6f 72 73 20 73 70 65 63 | 69 66 69 65 64 20 61 73 |ors spec|ified as|
|00003a60| 20 70 6d 57 68 69 74 65 | 20 6f 72 20 70 6d 42 6c | pmWhite| or pmBl|
|00003a70| 61 63 6b 20 61 72 65 20 | 61 73 73 69 67 6e 65 64 |ack are |assigned|
|00003a80| 20 74 6f 20 77 68 69 74 | 65 20 6f 72 20 62 6c 61 | to whit|e or bla|
|00003a90| 63 6b 20 6f 6e 20 31 2d | 62 69 74 20 64 65 76 69 |ck on 1-|bit devi|
|00003aa0| 63 65 73 2e 20 49 66 20 | 79 6f 75 72 20 61 70 70 |ces. If |your app|
|00003ab0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 77 6f 72 6b |lication| is work|
|00003ac0| 69 6e 67 20 77 69 74 68 | 20 72 65 64 20 61 6e 64 |ing with| red and|
|00003ad0| 20 64 61 72 6b 20 62 6c | 75 65 2c 20 66 6f 72 20 | dark bl|ue, for |
|00003ae0| 65 78 61 6d 70 6c 65 2c | 20 62 6f 74 68 20 6d 69 |example,| both mi|
|00003af0| 67 68 74 20 67 65 74 20 | 6d 61 70 70 65 64 20 74 |ght get |mapped t|
|00003b00| 6f 20 62 6c 61 63 6b 20 | 6f 6e 20 61 20 31 2d 62 |o black |on a 1-b|
|00003b10| 69 74 20 64 65 76 69 63 | 65 2e 20 42 79 20 61 73 |it devic|e. By as|
|00003b20| 73 69 67 6e 69 6e 67 20 | 70 6d 57 68 69 74 65 20 |signing |pmWhite |
|00003b30| 74 6f 20 6f 6e 65 20 61 | 6e 64 20 70 6d 42 6c 61 |to one a|nd pmBla|
|00003b40| 63 6b 20 74 6f 20 74 68 | 65 20 6f 74 68 65 72 2c |ck to th|e other,|
|00003b50| 20 79 6f 75 20 61 73 73 | 75 72 65 20 74 68 61 74 | you ass|ure that|
|00003b60| 20 74 68 65 79 20 61 72 | 65 20 61 6c 77 61 79 73 | they ar|e always|
|00003b70| 20 64 69 73 74 69 6e 63 | 74 2e 20 59 6f 75 20 63 | distinc|t. You c|
|00003b80| 61 6e 20 63 6f 6d 62 69 | 6e 65 20 74 68 65 73 65 |an combi|ne these|
|00003b90| 20 63 61 74 65 67 6f 72 | 69 65 73 20 77 69 74 68 | categor|ies with|
|00003ba0| 20 6f 74 68 65 72 20 75 | 73 61 67 65 20 63 61 74 | other u|sage cat|
|00003bb0| 65 67 6f 72 69 65 73 2c | 20 62 75 74 20 63 6f 6d |egories,| but com|
|00003bc0| 62 69 6e 69 6e 67 20 74 | 68 65 6d 20 77 69 74 68 |bining t|hem with|
|00003bd0| 20 65 61 63 68 20 6f 74 | 68 65 72 20 69 73 20 75 | each ot|her is u|
|00003be0| 6e 64 65 66 69 6e 65 64 | 2e 0d 59 6f 75 20 63 61 |ndefined|..You ca|
|00003bf0| 6e 20 63 6f 6d 62 69 6e | 65 20 73 65 76 65 72 61 |n combin|e severa|
|00003c00| 6c 20 63 6f 6c 6f 72 20 | 75 73 61 67 65 20 63 61 |l color |usage ca|
|00003c10| 74 65 67 6f 72 69 65 73 | 2e 20 59 6f 75 20 63 61 |tegories|. You ca|
|00003c20| 6e 20 73 70 65 63 69 66 | 79 20 74 68 61 74 20 61 |n specif|y that a|
|00003c30| 20 63 6f 6c 6f 72 20 69 | 73 20 62 6f 74 68 20 74 | color i|s both t|
|00003c40| 6f 6c 65 72 61 6e 74 20 | 61 6e 64 20 65 78 70 6c |olerant |and expl|
|00003c50| 69 63 69 74 2c 20 66 6f | 72 20 65 78 61 6d 70 6c |icit, fo|r exampl|
|00003c60| 65 2c 20 77 68 69 63 68 | 20 6d 65 61 6e 73 20 74 |e, which| means t|
|00003c70| 68 61 74 20 79 6f 75 72 | 20 52 47 42 20 63 6f 6c |hat your| RGB col|
|00003c80| 6f 72 2c 20 6f 72 20 61 | 20 74 6f 6c 65 72 61 62 |or, or a| tolerab|
|00003c90| 6c 79 20 63 6c 6f 73 65 | 20 6d 61 74 63 68 2c 20 |ly close| match, |
|00003ca0| 69 73 20 70 6c 61 63 65 | 64 20 69 6e 20 74 68 65 |is place|d in the|
|00003cb0| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 61 74 20 | color t|able at |
|00003cc0| 74 68 65 20 69 6e 64 65 | 78 20 63 6f 72 72 65 73 |the inde|x corres|
|00003cd0| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 74 68 61 74 20 |ponding |to that |
|00003ce0| 70 61 6c 65 74 74 65 20 | 65 6e 74 72 79 20 28 61 |palette |entry (a|
|00003cf0| 73 20 6f 70 70 6f 73 65 | 64 20 74 6f 20 6d 65 72 |s oppose|d to mer|
|00003d00| 65 6c 79 20 62 65 69 6e | 67 20 61 76 61 69 6c 61 |ely bein|g availa|
|00003d10| 62 6c 65 20 73 6f 6d 65 | 77 68 65 72 65 20 69 6e |ble some|where in|
|00003d20| 20 74 68 65 20 74 61 62 | 6c 65 29 2c 20 6f 6e 20 | the tab|le), on |
|00003d30| 61 6c 6c 20 64 65 76 69 | 63 65 73 20 74 68 61 74 |all devi|ces that|
|00003d40| 20 74 6f 75 63 68 20 74 | 68 65 20 77 69 6e 64 6f | touch t|he windo|
|00003d50| 77 2e 0d 54 79 70 69 63 | 61 6c 6c 79 2c 20 79 6f |w..Typic|ally, yo|
|00003d60| 75 20 63 72 65 61 74 65 | 20 61 20 70 61 6c 65 74 |u create| a palet|
|00003d70| 74 65 20 69 6e 20 77 68 | 69 63 68 20 61 6c 6c 20 |te in wh|ich all |
|00003d80| 63 6f 6c 6f 72 73 20 68 | 61 76 65 20 74 68 65 20 |colors h|ave the |
|00003d90| 73 61 6d 65 20 75 73 61 | 67 65 2c 20 61 6e 64 20 |same usa|ge, and |
|00003da0| 74 68 65 6e 20 69 66 20 | 61 6e 79 20 65 6e 74 72 |then if |any entr|
|00003db0| 69 65 73 20 6e 65 65 64 | 20 74 6f 20 62 65 20 69 |ies need| to be i|
|00003dc0| 6e 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 63 61 |n a diff|erent ca|
|00003dd0| 74 65 67 6f 72 79 2c 20 | 79 6f 75 20 63 68 61 6e |tegory, |you chan|
|00003de0| 67 65 20 74 68 65 6d 20 | 77 69 74 68 20 50 61 6c |ge them |with Pal|
|00003df0| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 72 6f 75 |ette Man|ager rou|
|00003e00| 74 69 6e 65 73 2e 20 0d | 0d 48 6f 77 20 74 68 65 |tines. .|.How the|
|00003e10| 20 50 61 6c 65 74 74 65 | 20 4d 61 6e 61 67 65 72 | Palette| Manager|
|00003e20| 20 41 6c 6c 6f 63 61 74 | 65 73 20 43 6f 6c 6f 72 | Allocat|es Color|
|00003e30| 73 20 66 6f 72 20 44 69 | 73 70 6c 61 79 0d 0d 54 |s for Di|splay..T|
|00003e40| 68 65 20 63 6f 6c 6f 72 | 73 20 61 76 61 69 6c 61 |he color|s availa|
|00003e50| 62 6c 65 20 77 68 65 6e | 20 79 6f 75 72 20 61 70 |ble when| your ap|
|00003e60| 70 6c 69 63 61 74 69 6f | 6e 20 69 73 20 72 75 6e |plicatio|n is run|
|00003e70| 6e 69 6e 67 20 64 65 70 | 65 6e 64 20 6f 6e 20 74 |ning dep|end on t|
|00003e80| 68 65 20 70 69 78 65 6c | 20 64 65 70 74 68 73 20 |he pixel| depths |
|00003e90| 61 6e 64 20 63 6f 6c 6f | 72 20 63 61 70 61 62 69 |and colo|r capabi|
|00003ea0| 6c 69 74 69 65 73 20 74 | 68 61 74 20 74 68 65 20 |lities t|hat the |
|00003eb0| 61 74 74 61 63 68 65 64 | 20 63 61 72 64 73 20 61 |attached| cards a|
|00003ec0| 6e 64 20 73 63 72 65 65 | 6e 73 20 63 61 6e 20 73 |nd scree|ns can s|
|00003ed0| 75 70 70 6f 72 74 2c 20 | 61 73 20 77 65 6c 6c 20 |upport, |as well |
|00003ee0| 61 73 20 77 68 61 74 20 | 74 68 6f 73 65 20 64 65 |as what |those de|
|00003ef0| 76 69 63 65 73 20 61 72 | 65 20 61 63 74 75 61 6c |vices ar|e actual|
|00003f00| 6c 79 20 73 65 74 20 74 | 6f 20 62 79 20 74 68 65 |ly set t|o by the|
|00003f10| 20 73 79 73 74 65 6d 20 | 6f 72 20 62 79 20 74 68 | system |or by th|
|00003f20| 65 20 75 73 65 72 2e 0d | 53 69 6e 63 65 20 79 6f |e user..|Since yo|
|00003f30| 75 72 20 70 61 6c 65 74 | 74 65 20 6d 61 79 20 64 |ur palet|te may d|
|00003f40| 65 66 69 6e 65 20 6d 6f | 72 65 20 63 6f 6c 6f 72 |efine mo|re color|
|00003f50| 73 20 74 68 61 6e 20 74 | 68 65 20 68 61 72 64 77 |s than t|he hardw|
|00003f60| 61 72 65 20 63 61 6e 20 | 64 69 73 70 6c 61 79 2c |are can |display,|
|00003f70| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e | the Pal|ette Man|
|00003f80| 61 67 65 72 20 61 6c 6c | 6f 63 61 74 65 73 20 64 |ager all|ocates d|
|00003f90| 65 76 69 63 65 20 63 6f | 6c 6f 72 20 74 61 62 6c |evice co|lor tabl|
|00003fa0| 65 20 65 6e 74 72 69 65 | 73 20 66 6f 72 20 79 6f |e entrie|s for yo|
|00003fb0| 75 72 20 72 65 71 75 65 | 73 74 73 20 61 63 63 6f |ur reque|sts acco|
|00003fc0| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 70 72 69 |rding to| the pri|
|00003fd0| 6f 72 69 74 79 20 6f 66 | 20 74 68 65 69 72 20 75 |ority of| their u|
|00003fe0| 73 61 67 65 2e 20 50 72 | 69 6f 72 69 74 69 7a 61 |sage. Pr|ioritiza|
|00003ff0| 74 69 6f 6e 20 6f 63 63 | 75 72 73 20 77 68 65 6e |tion occ|urs when|
|00004000| 20 74 68 65 20 41 63 74 | 69 76 61 74 65 50 61 6c | the Act|ivatePal|
|00004010| 65 74 74 65 20 70 72 6f | 63 65 64 75 72 65 20 69 |ette pro|cedure i|
|00004020| 73 20 63 61 6c 6c 65 64 | 2c 20 77 68 69 63 68 20 |s called|, which |
|00004030| 6f 63 63 75 72 73 20 61 | 75 74 6f 6d 61 74 69 63 |occurs a|utomatic|
|00004040| 61 6c 6c 79 20 77 68 65 | 6e 20 79 6f 75 72 20 77 |ally whe|n your w|
|00004050| 69 6e 64 6f 77 20 62 65 | 63 6f 6d 65 73 20 74 68 |indow be|comes th|
|00004060| 65 20 66 72 6f 6e 74 6d | 6f 73 74 20 77 69 6e 64 |e frontm|ost wind|
|00004070| 6f 77 2e 20 28 59 6f 75 | 20 6d 61 79 20 61 6c 73 |ow. (You| may als|
|00004080| 6f 20 63 61 6c 6c 20 41 | 63 74 69 76 61 74 65 50 |o call A|ctivateP|
|00004090| 61 6c 65 74 74 65 20 79 | 6f 75 72 73 65 6c 66 20 |alette y|ourself |
|000040a0| 61 66 74 65 72 20 63 68 | 61 6e 67 69 6e 67 20 6f |after ch|anging o|
|000040b0| 6e 65 20 6f 72 20 6d 6f | 72 65 20 6f 66 20 74 68 |ne or mo|re of th|
|000040c0| 65 20 70 61 6c 65 74 74 | 65 d5 73 20 63 6f 6c 6f |e palett|e.s colo|
|000040d0| 72 73 20 6f 72 20 75 73 | 61 67 65 20 63 61 74 65 |rs or us|age cate|
|000040e0| 67 6f 72 69 65 73 2e 29 | 20 0d 54 68 65 20 50 61 |gories.)| .The Pa|
|000040f0| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 20 66 69 |lette Ma|nager fi|
|00004100| 72 73 74 20 61 6c 6c 6f | 63 61 74 65 73 20 61 6e |rst allo|cates an|
|00004110| 69 6d 61 74 65 64 20 63 | 6f 6c 6f 72 73 20 74 68 |imated c|olors th|
|00004120| 61 74 20 61 72 65 20 61 | 6c 73 6f 20 73 70 65 63 |at are a|lso spec|
|00004130| 69 66 69 65 64 20 61 73 | 20 65 78 70 6c 69 63 69 |ified as| explici|
|00004140| 74 2e 20 43 6f 6c 6f 72 | 73 20 74 68 61 74 20 61 |t. Color|s that a|
|00004150| 72 65 20 73 70 65 63 69 | 66 69 65 64 20 61 73 20 |re speci|fied as |
|00004160| 62 6f 74 68 20 74 6f 6c | 65 72 61 6e 74 20 61 6e |both tol|erant an|
|00004170| 64 20 65 78 70 6c 69 63 | 69 74 20 61 72 65 20 61 |d explic|it are a|
|00004180| 6c 6c 6f 63 61 74 65 64 | 20 6e 65 78 74 2e 20 0d |llocated| next. .|
|00004190| 54 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |The Pale|tte Mana|
|000041a0| 67 65 72 20 61 6c 6c 6f | 63 61 74 65 73 20 61 6e |ger allo|cates an|
|000041b0| 69 6d 61 74 65 64 20 63 | 6f 6c 6f 72 73 20 6e 65 |imated c|olors ne|
|000041c0| 78 74 2e 20 53 74 61 72 | 74 69 6e 67 20 77 69 74 |xt. Star|ting wit|
|000041d0| 68 20 74 68 65 20 66 69 | 72 73 74 20 65 6e 74 72 |h the fi|rst entr|
|000041e0| 79 20 69 6e 20 79 6f 75 | 72 20 77 69 6e 64 6f 77 |y in you|r window|
|000041f0| d5 73 20 70 61 6c 65 74 | 74 65 20 28 65 6e 74 72 |.s palet|te (entr|
|00004200| 79 20 30 29 2c 20 74 68 | 65 20 50 61 6c 65 74 74 |y 0), th|e Palett|
|00004210| 65 20 4d 61 6e 61 67 65 | 72 20 63 68 65 63 6b 73 |e Manage|r checks|
|00004220| 20 74 6f 20 73 65 65 20 | 69 66 20 69 74 20 69 73 | to see |if it is|
|00004230| 20 61 6e 20 61 6e 69 6d | 61 74 65 64 20 65 6e 74 | an anim|ated ent|
|00004240| 72 79 2e 20 49 74 20 63 | 68 65 63 6b 73 20 65 61 |ry. It c|hecks ea|
|00004250| 63 68 20 61 6e 69 6d 61 | 74 65 64 20 65 6e 74 72 |ch anima|ted entr|
|00004260| 79 20 74 6f 20 73 65 65 | 20 74 68 61 74 20 74 68 |y to see| that th|
|00004270| 65 20 65 6e 74 72 79 20 | 68 61 73 20 61 20 72 65 |e entry |has a re|
|00004280| 73 65 72 76 65 64 20 69 | 6e 64 65 78 20 66 6f 72 |served i|ndex for|
|00004290| 20 65 61 63 68 20 61 70 | 70 72 6f 70 72 69 61 74 | each ap|propriat|
|000042a0| 65 20 64 65 76 69 63 65 | 2c 20 61 6e 64 20 73 65 |e device|, and se|
|000042b0| 6c 65 63 74 73 20 61 6e | 64 20 72 65 73 65 72 76 |lects an|d reserv|
|000042c0| 65 73 20 61 6e 20 69 6e | 64 65 78 20 69 66 20 6e |es an in|dex if n|
|000042d0| 65 65 64 65 64 2e 20 54 | 68 69 73 20 70 72 6f 63 |eeded. T|his proc|
|000042e0| 65 73 73 20 63 6f 6e 74 | 69 6e 75 65 73 20 75 6e |ess cont|inues un|
|000042f0| 74 69 6c 20 61 6c 6c 20 | 61 6e 69 6d 61 74 65 64 |til all |animated|
|00004300| 20 63 6f 6c 6f 72 20 72 | 65 71 75 65 73 74 73 20 | color r|equests |
|00004310| 68 61 76 65 20 62 65 65 | 6e 20 73 61 74 69 73 66 |have bee|n satisf|
|00004320| 69 65 64 20 6f 72 20 75 | 6e 74 69 6c 20 74 68 65 |ied or u|ntil the|
|00004330| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 64 65 78 | availab|le index|
|00004340| 65 73 20 61 72 65 20 65 | 78 68 61 75 73 74 65 64 |es are e|xhausted|
|00004350| 2e 20 0d 54 68 65 20 50 | 61 6c 65 74 74 65 20 4d |. .The P|alette M|
|00004360| 61 6e 61 67 65 72 20 68 | 61 6e 64 6c 65 73 20 74 |anager h|andles t|
|00004370| 6f 6c 65 72 61 6e 74 20 | 63 6f 6c 6f 72 73 20 6e |olerant |colors n|
|00004380| 65 78 74 2e 20 49 74 20 | 61 73 73 69 67 6e 73 20 |ext. It |assigns |
|00004390| 65 61 63 68 20 74 6f 6c | 65 72 61 6e 74 20 63 6f |each tol|erant co|
|000043a0| 6c 6f 72 20 61 6e 20 69 | 6e 64 65 78 20 75 6e 74 |lor an i|ndex unt|
|000043b0| 69 6c 20 61 6c 6c 20 74 | 6f 6c 65 72 61 6e 74 20 |il all t|olerant |
|000043c0| 63 6f 6c 6f 72 20 72 65 | 71 75 65 73 74 73 20 68 |color re|quests h|
|000043d0| 61 76 65 20 62 65 65 6e | 20 73 61 74 69 73 66 69 |ave been| satisfi|
|000043e0| 65 64 2e 20 54 68 65 20 | 50 61 6c 65 74 74 65 20 |ed. The |Palette |
|000043f0| 4d 61 6e 61 67 65 72 20 | 74 68 65 6e 20 63 61 6c |Manager |then cal|
|00004400| 63 75 6c 61 74 65 73 20 | 66 6f 72 20 65 61 63 68 |culates |for each|
|00004410| 20 65 6e 74 72 79 20 74 | 68 65 20 64 69 66 66 65 | entry t|he diffe|
|00004420| 72 65 6e 63 65 20 62 65 | 74 77 65 65 6e 20 74 68 |rence be|tween th|
|00004430| 65 20 64 65 73 69 72 65 | 64 20 63 6f 6c 6f 72 20 |e desire|d color |
|00004440| 61 6e 64 20 74 68 65 20 | 63 6f 6c 6f 72 20 61 73 |and the |color as|
|00004450| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|00004460| 65 20 73 65 6c 65 63 74 | 65 64 20 69 6e 64 65 78 |e select|ed index|
|00004470| 2e 20 49 66 20 74 68 65 | 20 64 69 66 66 65 72 65 |. If the| differe|
|00004480| 6e 63 65 20 65 78 63 65 | 65 64 73 20 74 68 65 20 |nce exce|eds the |
|00004490| 74 6f 6c 65 72 61 6e 63 | 65 20 79 6f 75 20 68 61 |toleranc|e you ha|
|000044a0| 76 65 20 73 70 65 63 69 | 66 69 65 64 2c 20 74 68 |ve speci|fied, th|
|000044b0| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|000044c0| 72 20 6d 61 72 6b 73 20 | 74 68 65 20 73 65 6c 65 |r marks |the sele|
|000044d0| 63 74 65 64 20 64 65 76 | 69 63 65 20 65 6e 74 72 |cted dev|ice entr|
|000044e0| 79 20 74 6f 20 62 65 20 | 63 68 61 6e 67 65 64 20 |y to be |changed |
|000044f0| 74 6f 20 74 68 65 20 64 | 65 73 69 72 65 64 20 63 |to the d|esired c|
|00004500| 6f 6c 6f 72 2e 20 0d 53 | 69 6e 63 65 20 65 78 70 |olor. .S|ince exp|
|00004510| 6c 69 63 69 74 20 63 6f | 6c 6f 72 73 20 64 65 73 |licit co|lors des|
|00004520| 69 67 6e 61 74 65 20 69 | 6e 64 65 78 20 76 61 6c |ignate i|ndex val|
|00004530| 75 65 73 2c 20 6e 6f 74 | 20 74 68 65 20 63 6f 6c |ues, not| the col|
|00004540| 6f 72 73 20 61 74 20 74 | 68 6f 73 65 20 69 6e 64 |ors at t|hose ind|
|00004550| 65 78 20 6c 6f 63 61 74 | 69 6f 6e 73 2c 20 61 6e |ex locat|ions, an|
|00004560| 64 20 73 69 6e 63 65 20 | 63 6f 75 72 74 65 6f 75 |d since |courteou|
|00004570| 73 20 63 6f 6c 6f 72 73 | 20 61 72 65 20 61 6d 65 |s colors| are ame|
|00004580| 6e 61 62 6c 65 20 74 6f | 20 62 65 69 6e 67 20 61 |nable to| being a|
|00004590| 73 73 69 67 6e 65 64 20 | 61 6e 79 20 52 47 42 20 |ssigned |any RGB |
|000045a0| 76 61 6c 75 65 2c 20 6e | 65 69 74 68 65 72 20 69 |value, n|either i|
|000045b0| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 64 75 72 |s consid|ered dur|
|000045c0| 69 6e 67 20 70 72 69 6f | 72 69 74 69 7a 61 74 69 |ing prio|ritizati|
|000045d0| 6f 6e 20 28 65 78 63 65 | 70 74 20 66 6f 72 20 65 |on (exce|pt for e|
|000045e0| 78 70 6c 69 63 69 74 20 | 63 6f 6d 62 69 6e 65 64 |xplicit |combined|
|000045f0| 20 77 69 74 68 20 61 6e | 69 6d 61 74 65 64 29 2e | with an|imated).|
|00004600| 20 0d 57 68 65 6e 20 74 | 68 65 20 50 61 6c 65 74 | .When t|he Palet|
|00004610| 74 65 20 4d 61 6e 61 67 | 65 72 20 68 61 73 20 6d |te Manag|er has m|
|00004620| 61 74 63 68 65 64 20 61 | 73 20 6d 61 6e 79 20 61 |atched a|s many a|
|00004630| 6e 69 6d 61 74 65 64 20 | 61 6e 64 20 74 6f 6c 65 |nimated |and tole|
|00004640| 72 61 6e 74 20 65 6e 74 | 72 69 65 73 20 61 73 20 |rant ent|ries as |
|00004650| 70 6f 73 73 69 62 6c 65 | 2c 20 69 74 20 63 68 65 |possible|, it che|
|00004660| 63 6b 73 20 74 6f 20 73 | 65 65 20 69 66 20 74 68 |cks to s|ee if th|
|00004670| 65 20 63 75 72 72 65 6e | 74 20 64 65 76 69 63 65 |e curren|t device|
|00004680| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 69 73 20 | color t|able is |
|00004690| 61 64 65 71 75 61 74 65 | 2e 20 49 66 20 6d 6f 64 |adequate|. If mod|
|000046a0| 69 66 69 63 61 74 69 6f | 6e 73 20 61 72 65 20 6e |ificatio|ns are n|
|000046b0| 65 65 64 65 64 2c 20 74 | 68 65 20 50 61 6c 65 74 |eeded, t|he Palet|
|000046c0| 74 65 20 4d 61 6e 61 67 | 65 72 20 6f 76 65 72 72 |te Manag|er overr|
|000046d0| 69 64 65 73 20 61 6e 79 | 20 63 61 6c 6c 73 20 6d |ides any| calls m|
|000046e0| 61 64 65 20 74 6f 20 74 | 68 65 20 43 6f 6c 6f 72 |ade to t|he Color|
|000046f0| 20 4d 61 6e 61 67 65 72 | 20 6f 75 74 73 69 64 65 | Manager| outside|
|00004700| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 4d 61 6e | the Pal|ette Man|
|00004710| 61 67 65 72 20 61 6e 64 | 20 74 68 65 6e 20 63 61 |ager and| then ca|
|00004720| 6c 6c 73 20 74 68 65 20 | 43 6f 6c 6f 72 20 4d 61 |lls the |Color Ma|
|00004730| 6e 61 67 65 72 20 74 6f | 20 63 68 61 6e 67 65 20 |nager to| change |
|00004740| 74 68 65 20 64 65 76 69 | 63 65 d5 73 20 63 6f 6c |the devi|ce.s col|
|00004750| 6f 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 61 |or envir|onment a|
|00004760| 63 63 6f 72 64 69 6e 67 | 6c 79 20 28 77 69 74 68 |ccording|ly (with|
|00004770| 20 74 68 65 20 53 65 74 | 45 6e 74 72 69 65 73 20 | the Set|Entries |
|00004780| 70 72 6f 63 65 64 75 72 | 65 29 2e 20 0d 46 69 6e |procedur|e). .Fin|
|00004790| 61 6c 6c 79 2c 20 69 66 | 20 74 68 65 20 63 6f 6c |ally, if| the col|
|000047a0| 6f 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 6f |or envir|onment o|
|000047b0| 6e 20 61 20 67 69 76 65 | 6e 20 64 65 76 69 63 65 |n a give|n device|
|000047c0| 20 68 61 73 20 63 68 61 | 6e 67 65 64 2c 20 74 68 | has cha|nged, th|
|000047d0| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|000047e0| 72 20 63 68 65 63 6b 73 | 20 74 6f 20 73 65 65 20 |r checks| to see |
|000047f0| 69 66 20 74 68 69 73 20 | 63 68 61 6e 67 65 20 68 |if this |change h|
|00004800| 61 73 20 61 66 66 65 63 | 74 65 64 20 61 6e 79 20 |as affec|ted any |
|00004810| 6f 74 68 65 72 20 77 69 | 6e 64 6f 77 20 69 6e 20 |other wi|ndow in |
|00004820| 74 68 65 20 73 79 73 74 | 65 6d 2e 20 49 66 20 61 |the syst|em. If a|
|00004830| 6e 6f 74 68 65 72 20 77 | 69 6e 64 6f 77 20 69 73 |nother w|indow is|
|00004840| 20 61 66 66 65 63 74 65 | 64 2c 20 74 68 65 20 50 | affecte|d, the P|
|00004850| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 20 63 |alette M|anager c|
|00004860| 68 65 63 6b 73 20 74 68 | 61 74 20 77 69 6e 64 6f |hecks th|at windo|
|00004870| 77 20 74 6f 20 73 65 65 | 20 69 66 20 69 74 20 73 |w to see| if it s|
|00004880| 70 65 63 69 66 69 65 73 | 20 61 6e 20 75 70 64 61 |pecifies| an upda|
|00004890| 74 65 20 69 6e 20 74 68 | 65 20 63 61 73 65 20 6f |te in th|e case o|
|000048a0| 66 20 73 75 63 68 20 63 | 68 61 6e 67 65 73 2e 20 |f such c|hanges. |
|000048b0| 41 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 63 61 6e |Applicat|ions can|
|000048c0| 20 75 73 65 20 74 68 65 | 20 53 65 74 50 61 6c 65 | use the| SetPale|
|000048d0| 74 74 65 2c 20 4e 53 65 | 74 50 61 6c 65 74 74 65 |tte, NSe|tPalette|
|000048e0| 2c 20 6f 72 20 53 65 74 | 50 61 6c 65 74 74 65 55 |, or Set|PaletteU|
|000048f0| 70 64 61 74 65 73 20 70 | 72 6f 63 65 64 75 72 65 |pdates p|rocedure|
|00004900| 20 74 6f 20 73 70 65 63 | 69 66 79 20 77 68 65 74 | to spec|ify whet|
|00004910| 68 65 72 20 61 20 77 69 | 6e 64 6f 77 20 73 68 6f |her a wi|ndow sho|
|00004920| 75 6c 64 20 62 65 20 75 | 70 64 61 74 65 64 20 77 |uld be u|pdated w|
|00004930| 68 65 6e 20 69 74 73 20 | 65 6e 76 69 72 6f 6e 6d |hen its |environm|
|00004940| 65 6e 74 20 68 61 73 20 | 62 65 65 6e 20 63 68 61 |ent has |been cha|
|00004950| 6e 67 65 64 20 62 65 63 | 61 75 73 65 20 6f 66 20 |nged bec|ause of |
|00004960| 61 63 74 69 6f 6e 73 20 | 62 79 20 61 6e 6f 74 68 |actions |by anoth|
|00004970| 65 72 20 77 69 6e 64 6f | 77 2e 20 28 49 66 20 73 |er windo|w. (If s|
|00004980| 6f 2c 20 74 68 65 20 49 | 6e 76 61 6c 52 65 63 74 |o, the I|nvalRect|
|00004990| 20 70 72 6f 63 65 64 75 | 72 65 2c 20 64 65 73 63 | procedu|re, desc|
|000049a0| 72 69 62 65 64 20 69 6e | 20 74 68 65 20 57 69 6e |ribed in| the Win|
|000049b0| 64 6f 77 20 4d 61 6e 61 | 67 65 72 20 63 68 61 70 |dow Mana|ger chap|
|000049c0| 74 65 72 20 6f 66 20 74 | 68 65 20 54 6f 6f 6c 62 |ter of t|he Toolb|
|000049d0| 6f 78 20 76 6f 6c 75 6d | 65 2c 20 75 70 64 61 74 |ox volum|e, updat|
|000049e0| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 75 73 |es the w|indow us|
|000049f0| 69 6e 67 20 74 68 65 20 | 62 6f 75 6e 64 61 72 79 |ing the |boundary|
|00004a00| 20 72 65 63 74 61 6e 67 | 6c 65 20 6f 66 20 74 68 | rectang|le of th|
|00004a10| 65 20 64 65 76 69 63 65 | 20 74 68 61 74 20 68 61 |e device| that ha|
|00004a20| 73 20 62 65 65 6e 20 63 | 68 61 6e 67 65 64 2e 29 |s been c|hanged.)|
|00004a30| 0d 0d 48 6f 77 20 74 68 | 65 20 50 61 6c 65 74 74 |..How th|e Palett|
|00004a40| 65 20 4d 61 6e 61 67 65 | 72 20 52 65 73 74 6f 72 |e Manage|r Restor|
|00004a50| 65 73 20 74 68 65 20 43 | 6f 6c 6f 72 20 45 6e 76 |es the C|olor Env|
|00004a60| 69 72 6f 6e 6d 65 6e 74 | 0d 0d 57 68 65 6e 20 61 |ironment|..When a|
|00004a70| 20 77 69 6e 64 6f 77 20 | 63 6c 6f 73 65 73 2c 20 | window |closes, |
|00004a80| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|00004a90| 67 65 72 20 72 65 73 65 | 74 73 20 65 61 63 68 20 |ger rese|ts each |
|00004aa0| 64 69 73 70 6c 61 79 20 | 64 65 76 69 63 65 20 74 |display |device t|
|00004ab0| 6f 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 63 6f |o the de|fault co|
|00004ac0| 6c 6f 72 20 74 61 62 6c | 65 20 66 6f 72 20 74 68 |lor tabl|e for th|
|00004ad0| 61 74 20 64 65 70 74 68 | 2c 20 65 78 63 65 70 74 |at depth|, except|
|00004ae0| 20 66 6f 72 20 74 68 6f | 73 65 20 69 6e 64 65 78 | for tho|se index|
|00004af0| 65 73 20 73 74 69 6c 6c | 20 72 65 73 65 72 76 65 |es still| reserve|
|00004b00| 64 20 62 79 20 61 6e 6f | 74 68 65 72 20 61 70 70 |d by ano|ther app|
|00004b10| 6c 69 63 61 74 69 6f 6e | 2e 20 28 45 76 65 6e 74 |lication|. (Event|
|00004b20| 75 61 6c 6c 79 2c 20 74 | 68 65 20 61 70 70 6c 69 |ually, t|he appli|
|00004b30| 63 61 74 69 6f 6e 20 74 | 68 61 74 20 6f 77 6e 73 |cation t|hat owns|
|00004b40| 20 74 68 6f 73 65 20 69 | 6e 64 65 78 65 73 20 77 | those i|ndexes w|
|00004b50| 69 6c 6c 20 74 65 72 6d | 69 6e 61 74 65 20 6f 72 |ill term|inate or|
|00004b60| 20 76 6f 6c 75 6e 74 61 | 72 69 6c 79 20 72 65 6c | volunta|rily rel|
|00004b70| 65 61 73 65 20 74 68 65 | 20 69 6e 64 65 78 65 73 |ease the| indexes|
|00004b80| 2e 29 20 59 6f 75 20 63 | 61 6e 20 72 75 6e 20 61 |.) You c|an run a|
|00004b90| 20 6c 6f 6e 67 20 73 65 | 71 75 65 6e 63 65 20 6f | long se|quence o|
|00004ba0| 66 20 63 6f 6c 6f 72 2d | 73 74 65 61 6c 69 6e 67 |f color-|stealing|
|00004bb0| 2c 20 77 69 6c 64 6c 79 | 20 61 6e 69 6d 61 74 65 |, wildly| animate|
|00004bc0| 64 20 70 72 6f 67 72 61 | 6d 73 2c 20 71 75 69 74 |d progra|ms, quit|
|00004bd0| 20 74 68 65 6d 20 61 6c | 6c 2c 20 72 65 74 75 72 | them al|l, retur|
|00004be0| 6e 20 74 6f 20 74 68 65 | 20 46 69 6e 64 65 72 2c |n to the| Finder,|
|00004bf0| 20 61 6e 64 20 66 69 6e | 64 20 65 76 65 72 79 20 | and fin|d every |
|00004c00| 73 63 72 65 65 6e 20 66 | 75 6c 6c 79 20 72 65 73 |screen f|ully res|
|00004c10| 74 6f 63 6b 65 64 20 77 | 69 74 68 20 64 65 66 61 |tocked w|ith defa|
|00004c20| 75 6c 74 20 73 79 73 74 | 65 6d 20 63 6f 6c 6f 72 |ult syst|em color|
|00004c30| 20 74 61 62 6c 65 73 2e | 20 28 42 75 74 20 69 66 | tables.| (But if|
|00004c40| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 | an appl|ication |
|00004c50| 63 61 6c 6c 73 20 74 68 | 65 20 43 6f 6c 6f 72 20 |calls th|e Color |
|00004c60| 4d 61 6e 61 67 65 72 20 | 70 72 6f 63 65 64 75 72 |Manager |procedur|
|00004c70| 65 20 50 72 6f 74 65 63 | 74 45 6e 74 72 69 65 73 |e Protec|tEntries|
|00004c80| 20 74 6f 20 6c 6f 63 6b | 20 61 20 64 65 76 69 63 | to lock| a devic|
|00004c90| 65 20 69 6e 64 65 78 2c | 20 74 68 65 20 50 61 6c |e index,| the Pal|
|00004ca0| 65 74 74 65 20 4d 61 6e | 61 67 65 72 20 63 61 6e |ette Man|ager can|
|00004cb0| 6e 6f 74 20 72 65 73 74 | 6f 72 65 20 74 68 65 20 |not rest|ore the |
|00004cc0| 64 65 66 61 75 6c 74 20 | 63 6f 6c 6f 72 20 74 61 |default |color ta|
|00004cd0| 62 6c 65 73 2e 29 0d 54 | 68 65 20 50 61 6c 65 74 |bles.).T|he Palet|
|00004ce0| 74 65 20 4d 61 6e 61 67 | 65 72 20 70 72 6f 76 69 |te Manag|er provi|
|00004cf0| 64 65 73 20 64 65 66 61 | 75 6c 74 20 63 6f 6c 6f |des defa|ult colo|
|00004d00| 72 20 74 61 62 6c 65 73 | 20 66 6f 72 20 64 69 66 |r tables| for dif|
|00004d10| 66 65 72 69 6e 67 20 73 | 63 72 65 65 6e 20 64 65 |fering s|creen de|
|00004d20| 76 69 63 65 73 2e 0d 53 | 63 72 65 65 6e 20 64 65 |vices..S|creen de|
|00004d30| 76 69 63 65 09 44 65 66 | 61 75 6c 74 20 63 6f 6c |vice.Def|ault col|
|00004d40| 6f 72 20 74 61 62 6c 65 | 20 09 0d 41 6e 79 20 64 |or table| ..Any d|
|00004d50| 65 76 69 63 65 20 69 6e | 20 67 72 61 79 20 6d 6f |evice in| gray mo|
|00004d60| 64 65 20 6f 72 20 31 20 | 62 69 74 20 64 65 65 70 |de or 1 |bit deep|
|00004d70| 09 41 20 67 72 61 79 2d | 73 63 61 6c 65 20 72 61 |.A gray-|scale ra|
|00004d80| 6d 70 2c 20 74 68 61 74 | 20 69 73 2c 20 61 6e 20 |mp, that| is, an |
|00004d90| 65 76 65 6e 6c 79 20 73 | 70 61 63 65 64 20 72 61 |evenly s|paced ra|
|00004da0| 6e 67 65 20 66 72 6f 6d | 20 77 68 69 74 65 20 69 |nge from| white i|
|00004db0| 6e 20 69 6e 64 65 78 20 | 30 20 74 6f 20 62 6c 61 |n index |0 to bla|
|00004dc0| 63 6b 20 69 6e 20 74 68 | 65 20 6c 61 73 74 20 69 |ck in th|e last i|
|00004dd0| 6e 64 65 78 20 28 6f 6e | 6c 79 20 77 68 69 74 65 |ndex (on|ly white|
|00004de0| 20 61 6e 64 20 62 6c 61 | 63 6b 20 69 6e 20 31 2d | and bla|ck in 1-|
|00004df0| 62 69 74 20 6d 6f 64 65 | 29 2e 09 0d 41 20 63 6f |bit mode|)...A co|
|00004e00| 6c 6f 72 20 64 65 76 69 | 63 65 20 69 6e 20 32 2d |lor devi|ce in 2-|
|00004e10| 62 69 74 20 6d 6f 64 65 | 09 49 6e 64 65 78 65 73 |bit mode|.Indexes|
|00004e20| 20 30 20 74 6f 20 33 20 | 63 6f 6e 74 61 69 6e 20 | 0 to 3 |contain |
|00004e30| 77 68 69 74 65 2c 20 35 | 30 20 70 65 72 63 65 6e |white, 5|0 percen|
|00004e40| 74 20 67 72 61 79 2c 20 | 74 68 65 20 68 69 67 68 |t gray, |the high|
|00004e50| 6c 69 67 68 74 20 63 6f | 6c 6f 72 2c 20 61 6e 64 |light co|lor, and|
|00004e60| 20 62 6c 61 63 6b 2c 20 | 72 65 73 70 65 63 74 69 | black, |respecti|
|00004e70| 76 65 6c 79 2e 09 0d 41 | 20 63 6f 6c 6f 72 20 64 |vely...A| color d|
|00004e80| 65 76 69 63 65 20 69 6e | 20 34 2d 62 69 74 20 6d |evice in| 4-bit m|
|00004e90| 6f 64 65 09 54 68 65 20 | 72 65 73 6f 75 72 63 65 |ode.The |resource|
|00004ea0| 20 27 63 6c 75 74 27 20 | 77 69 74 68 20 61 20 72 | 'clut' |with a r|
|00004eb0| 65 73 6f 75 72 63 65 20 | 49 44 20 6f 66 20 34 2e |esource |ID of 4.|
|00004ec0| 20 49 66 20 74 68 65 20 | 63 6f 6c 6f 72 20 63 6c | If the |color cl|
|00004ed0| 6f 73 65 73 74 20 74 6f | 20 74 68 65 20 68 69 67 |osest to| the hig|
|00004ee0| 68 6c 69 67 68 74 20 63 | 6f 6c 6f 72 20 64 69 66 |hlight c|olor dif|
|00004ef0| 66 65 72 73 20 66 72 6f | 6d 20 69 74 20 62 79 20 |fers fro|m it by |
|00004f00| 6d 6f 72 65 20 74 68 61 | 6e 20 24 33 30 30 30 20 |more tha|n $3000 |
|00004f10| 69 6e 20 61 6e 79 20 63 | 6f 6d 70 6f 6e 65 6e 74 |in any c|omponent|
|00004f20| 2c 20 74 68 65 20 63 6f | 6c 6f 72 20 69 73 20 61 |, the co|lor is a|
|00004f30| 76 65 72 61 67 65 64 20 | 77 69 74 68 20 74 68 65 |veraged |with the|
|00004f40| 20 68 69 67 68 6c 69 67 | 68 74 20 63 6f 6c 6f 72 | highlig|ht color|
|00004f50| 2e 09 0d 41 20 63 6f 6c | 6f 72 20 64 65 76 69 63 |...A col|or devic|
|00004f60| 65 20 69 6e 20 38 2d 62 | 69 74 20 6d 6f 64 65 09 |e in 8-b|it mode.|
|00004f70| 54 68 65 20 72 65 73 6f | 75 72 63 65 20 27 63 6c |The reso|urce 'cl|
|00004f80| 75 74 27 20 77 69 74 68 | 20 61 20 72 65 73 6f 75 |ut' with| a resou|
|00004f90| 72 63 65 20 49 44 20 6f | 66 20 38 2e 09 0d 0d 54 |rce ID o|f 8....T|
|00004fa0| 68 65 20 27 63 6c 75 74 | 27 20 72 65 73 6f 75 72 |he 'clut|' resour|
|00004fb0| 63 65 20 49 44 73 20 31 | 2c 20 32 2c 20 34 2c 20 |ce IDs 1|, 2, 4, |
|00004fc0| 61 6e 64 20 38 20 61 72 | 65 20 74 68 65 20 73 74 |and 8 ar|e the st|
|00004fd0| 61 6e 64 61 72 64 20 63 | 6f 6c 6f 72 20 6c 6f 6f |andard c|olor loo|
|00004fe0| 6b 75 70 20 74 61 62 6c | 65 73 20 66 6f 72 20 74 |kup tabl|es for t|
|00004ff0| 68 6f 73 65 20 62 69 74 | 20 64 65 70 74 68 73 3b |hose bit| depths;|
|00005000| 20 74 68 65 79 20 61 72 | 65 20 73 68 6f 77 6e 20 | they ar|e shown |
|00005010| 69 6e 20 43 6f 6c 6f 72 | 20 50 6c 61 74 65 20 78 |in Color| Plate x|
|00005020| 78 2c 20 d2 44 65 66 61 | 75 6c 74 20 43 6f 6c 6f |x, .Defa|ult Colo|
|00005030| 72 20 54 61 62 6c 65 73 | 2e d3 20 54 68 65 20 27 |r Tables|.. The '|
|00005040| 63 6c 75 74 27 20 72 65 | 73 6f 75 72 63 65 20 49 |clut' re|source I|
|00005050| 44 73 20 33 34 2c 20 33 | 36 2c 20 61 6e 64 20 34 |Ds 34, 3|6, and 4|
|00005060| 30 d1 74 68 65 20 62 69 | 74 20 64 65 70 74 68 20 |0.the bi|t depth |
|00005070| 70 6c 75 73 20 33 32 d1 | 61 72 65 20 67 72 61 79 |plus 32.|are gray|
|00005080| 2d 73 63 61 6c 65 20 72 | 61 6d 70 73 20 66 6f 72 |-scale r|amps for|
|00005090| 20 62 69 74 20 64 65 70 | 74 68 73 20 6f 66 20 32 | bit dep|ths of 2|
|000050a0| 2c 20 34 2c 20 61 6e 64 | 20 38 2e 20 0d 54 68 65 |, 4, and| 8. .The|
|000050b0| 20 64 65 66 61 75 6c 74 | 20 63 6f 6c 6f 72 20 6c | default| color l|
|000050c0| 6f 6f 6b 75 70 20 74 61 | 62 6c 65 73 20 77 69 74 |ookup ta|bles wit|
|000050d0| 68 20 74 68 65 20 68 69 | 67 68 6c 69 67 68 74 20 |h the hi|ghlight |
|000050e0| 63 6f 6c 6f 72 20 61 64 | 64 65 64 20 61 72 65 20 |color ad|ded are |
|000050f0| 27 63 6c 75 74 27 20 72 | 65 73 6f 75 72 63 65 20 |'clut' r|esource |
|00005100| 49 44 73 20 36 36 2c 20 | 36 38 2c 20 61 6e 64 20 |IDs 66, |68, and |
|00005110| 37 32 d1 74 68 61 74 20 | 69 73 2c 20 74 68 65 20 |72.that |is, the |
|00005120| 62 69 74 20 64 65 70 74 | 68 20 70 6c 75 73 20 36 |bit dept|h plus 6|
|00005130| 34 2e 20 54 6f 20 67 65 | 74 20 74 68 65 73 65 20 |4. To ge|t these |
|00005140| 63 6f 6c 6f 72 20 6c 6f | 6f 6b 75 70 20 74 61 62 |color lo|okup tab|
|00005150| 6c 65 73 2c 20 75 73 65 | 20 74 68 65 20 47 65 74 |les, use| the Get|
|00005160| 43 54 61 62 6c 65 20 66 | 75 6e 63 74 69 6f 6e 20 |CTable f|unction |
|00005170| 28 6e 6f 74 20 47 65 74 | 52 65 73 6f 75 72 63 65 |(not Get|Resource|
|00005180| 29 2c 20 61 73 20 64 65 | 73 63 72 69 62 65 64 20 |), as de|scribed |
|00005190| 69 6e 20 74 68 65 20 51 | 75 69 63 6b 44 72 61 77 |in the Q|uickDraw|
|000051a0| 20 63 68 61 70 74 65 72 | 2e 0d 0d 54 68 65 20 50 | chapter|...The P|
|000051b0| 61 6c 65 74 74 65 20 52 | 65 73 6f 75 72 63 65 20 |alette R|esource |
|000051c0| 46 69 6c 65 0d 0d 41 6c | 74 68 6f 75 67 68 20 70 |File..Al|though p|
|000051d0| 61 6c 65 74 74 65 73 20 | 63 61 6e 20 62 65 20 63 |alettes |can be c|
|000051e0| 72 65 61 74 65 64 20 66 | 72 6f 6d 20 63 6f 6c 6f |reated f|rom colo|
|000051f0| 72 20 74 61 62 6c 65 73 | 20 61 6e 64 20 66 72 6f |r tables| and fro|
|00005200| 6d 20 6f 74 68 65 72 20 | 70 61 6c 65 74 74 65 73 |m other |palettes|
|00005210| 2c 20 6d 6f 73 74 20 70 | 61 6c 65 74 74 65 20 72 |, most p|alette r|
|00005220| 65 63 6f 72 64 73 20 68 | 61 76 65 20 61 73 20 74 |ecords h|ave as t|
|00005230| 68 65 69 72 20 75 6c 74 | 69 6d 61 74 65 20 70 72 |heir ult|imate pr|
|00005240| 6f 67 65 6e 69 74 6f 72 | 20 61 20 70 61 6c 65 74 |ogenitor| a palet|
|00005250| 74 65 20 72 65 73 6f 75 | 72 63 65 2c 20 74 68 61 |te resou|rce, tha|
|00005260| 74 20 69 73 2c 20 61 20 | 72 65 73 6f 75 72 63 65 |t is, a |resource|
|00005270| 20 6f 66 20 74 79 70 65 | 20 27 70 6c 74 74 27 2e | of type| 'pltt'.|
|00005280| 20 49 74 20 69 73 20 69 | 6e 20 74 68 65 20 64 65 | It is i|n the de|
|00005290| 73 69 67 6e 20 6f 66 20 | 74 68 65 20 70 61 6c 65 |sign of |the pale|
|000052a0| 74 74 65 20 72 65 73 6f | 75 72 63 65 20 74 68 61 |tte reso|urce tha|
|000052b0| 74 20 79 6f 75 20 66 69 | 72 73 74 20 64 65 63 69 |t you fi|rst deci|
|000052c0| 64 65 20 77 68 61 74 20 | 63 6f 6c 6f 72 73 20 79 |de what |colors y|
|000052d0| 6f 75 20 6e 65 65 64 2c | 20 74 68 65 69 72 20 75 |ou need,| their u|
|000052e0| 73 61 67 65 20 61 6e 64 | 20 74 6f 6c 65 72 61 6e |sage and| toleran|
|000052f0| 63 65 20 76 61 6c 75 65 | 73 2c 20 61 6e 64 20 74 |ce value|s, and t|
|00005300| 68 65 69 72 20 73 65 71 | 75 65 6e 63 65 2e 0d 0d |heir seq|uence...|
|00005310| 44 65 66 69 6e 69 6e 67 | 20 74 68 65 20 52 47 42 |Defining| the RGB|
|00005320| 20 43 6f 6c 6f 72 20 6f | 66 20 61 6e 20 45 6e 74 | Color o|f an Ent|
|00005330| 72 79 0d 0d 54 68 65 20 | 52 47 42 20 76 61 6c 75 |ry..The |RGB valu|
|00005340| 65 20 6f 66 20 61 20 70 | 61 6c 65 74 74 65 20 72 |e of a p|alette r|
|00005350| 65 73 6f 75 72 63 65 20 | 63 6f 6e 73 69 73 74 73 |esource |consists|
|00005360| 20 6f 66 20 74 68 72 65 | 65 20 69 6e 74 65 67 65 | of thre|e intege|
|00005370| 72 20 76 61 6c 75 65 73 | 2c 20 73 65 70 61 72 61 |r values|, separa|
|00005380| 74 65 64 20 62 79 20 63 | 6f 6d 6d 61 73 2e 20 54 |ted by c|ommas. T|
|00005390| 68 65 20 62 72 69 67 68 | 74 65 73 74 20 77 68 69 |he brigh|test whi|
|000053a0| 74 65 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 74 |te consi|sts of t|
|000053b0| 68 72 65 65 20 6d 61 78 | 69 6d 75 6d 20 69 6e 74 |hree max|imum int|
|000053c0| 65 67 65 72 20 76 61 6c | 75 65 73 20 28 36 35 35 |eger val|ues (655|
|000053d0| 33 35 29 3b 20 62 6c 61 | 63 6b 20 69 73 20 74 68 |35); bla|ck is th|
|000053e0| 72 65 65 20 6d 69 6e 69 | 6d 75 6d 20 76 61 6c 75 |ree mini|mum valu|
|000053f0| 65 73 20 28 30 29 3b 20 | 67 72 61 79 73 20 61 72 |es (0); |grays ar|
|00005400| 65 20 61 6e 79 20 74 68 | 72 65 65 20 65 71 75 61 |e any th|ree equa|
|00005410| 6c 20 76 61 6c 75 65 73 | 20 62 65 74 77 65 65 6e |l values| between|
|00005420| 20 77 68 69 74 65 20 61 | 6e 64 20 62 6c 61 63 6b | white a|nd black|
|00005430| 2e 20 0d 59 6f 75 20 6d | 61 79 20 6b 6e 6f 77 20 |. .You m|ay know |
|00005440| 74 68 65 20 52 47 42 20 | 76 61 6c 75 65 73 20 6f |the RGB |values o|
|00005450| 66 20 74 68 65 20 63 6f | 6c 6f 72 73 20 79 6f 75 |f the co|lors you|
|00005460| 20 6e 65 65 64 2c 20 6f | 72 20 79 6f 75 20 6d 61 | need, o|r you ma|
|00005470| 79 20 64 65 74 65 72 6d | 69 6e 65 20 74 68 65 6d |y determ|ine them|
|00005480| 20 62 79 20 74 72 69 61 | 6c 20 61 6e 64 20 65 72 | by tria|l and er|
|00005490| 72 6f 72 2c 20 6f 72 20 | 62 79 20 75 73 69 6e 67 |ror, or |by using|
|000054a0| 20 61 20 63 6f 6c 6f 72 | 20 70 69 63 6b 65 72 2e | a color| picker.|
|000054b0| 0d 0d 0d 53 70 65 63 69 | 66 79 69 6e 67 20 45 6e |...Speci|fying En|
|000054c0| 74 72 79 20 55 73 61 67 | 65 0d 0d 59 6f 75 20 64 |try Usag|e..You d|
|000054d0| 65 66 69 6e 65 20 74 68 | 65 20 75 73 61 67 65 20 |efine th|e usage |
|000054e0| 63 61 74 65 67 6f 72 79 | 20 66 6f 72 20 65 61 63 |category| for eac|
|000054f0| 68 20 63 6f 6c 6f 72 20 | 69 6e 20 61 20 70 61 6c |h color |in a pal|
|00005500| 65 74 74 65 2c 20 62 79 | 20 75 73 69 6e 67 20 74 |ette, by| using t|
|00005510| 68 65 73 65 20 63 6f 6e | 73 74 61 6e 74 73 3a 0d |hese con|stants:.|
|00005520| 43 4f 4e 53 54 09 09 70 | 6d 43 6f 75 72 74 65 6f |CONST..p|mCourteo|
|00005530| 75 73 09 09 09 09 09 3d | 20 24 30 30 30 30 3b 09 |us.....=| $0000;.|
|00005540| 09 09 09 7b 63 6f 75 72 | 74 65 6f 75 73 20 63 6f |...{cour|teous co|
|00005550| 6c 6f 72 7d 09 0d 09 09 | 70 6d 54 6f 6c 65 72 61 |lor}....|pmTolera|
|00005560| 6e 74 09 09 09 09 09 3d | 20 24 30 30 30 32 3b 09 |nt.....=| $0002;.|
|00005570| 09 09 09 7b 74 6f 6c 65 | 72 61 6e 74 20 63 6f 6c |...{tole|rant col|
|00005580| 6f 72 7d 0d 09 09 70 6d | 41 6e 69 6d 61 74 65 64 |or}...pm|Animated|
|00005590| 09 09 09 09 09 3d 20 24 | 30 30 30 34 3b 09 09 09 |.....= $|0004;...|
|000055a0| 09 7b 61 6e 69 6d 61 74 | 65 64 20 63 6f 6c 6f 72 |.{animat|ed color|
|000055b0| 7d 0d 09 09 70 6d 45 78 | 70 6c 69 63 69 74 09 09 |}...pmEx|plicit..|
|000055c0| 09 09 09 3d 20 24 30 30 | 30 38 3b 09 09 09 09 7b |...= $00|08;....{|
|000055d0| 65 78 70 6c 69 63 69 74 | 20 63 6f 6c 6f 72 7d 0d |explicit| color}.|
|000055e0| 09 09 70 6d 57 68 69 74 | 65 09 09 09 09 09 3d 20 |..pmWhit|e.....= |
|000055f0| 24 30 30 31 30 3b 09 09 | 09 09 7b 75 73 65 20 6f |$0010;..|..{use o|
|00005600| 6e 20 31 2d 62 69 74 20 | 64 65 76 69 63 65 7d 0d |n 1-bit |device}.|
|00005610| 09 09 70 6d 42 6c 61 63 | 6b 09 09 09 09 09 3d 20 |..pmBlac|k.....= |
|00005620| 24 30 30 32 30 3b 09 09 | 09 09 7b 75 73 65 20 6f |$0020;..|..{use o|
|00005630| 6e 20 31 2d 62 69 74 20 | 64 65 76 69 63 65 7d 0d |n 1-bit |device}.|
|00005640| 09 09 70 6d 49 6e 68 69 | 62 69 74 47 32 09 09 09 |..pmInhi|bitG2...|
|00005650| 09 09 3d 20 24 30 31 30 | 30 3b 09 09 09 09 7b 69 |..= $010|0;....{i|
|00005660| 6e 68 69 62 69 74 20 6f | 6e 20 32 2d 62 69 74 20 |nhibit o|n 2-bit |
|00005670| 67 72 61 79 2d 73 63 61 | 6c 65 7d 0d 09 09 09 09 |gray-sca|le}.....|
|00005680| 09 09 09 09 09 09 09 7b | 20 64 65 76 69 63 65 7d |.......{| device}|
|00005690| 0d 09 09 70 6d 49 6e 68 | 69 62 69 74 43 32 09 09 |...pmInh|ibitC2..|
|000056a0| 09 09 09 3d 20 24 30 32 | 30 30 3b 09 09 09 09 7b |...= $02|00;....{|
|000056b0| 69 6e 68 69 62 69 74 20 | 6f 6e 20 32 2d 62 69 74 |inhibit |on 2-bit|
|000056c0| 20 63 6f 6c 6f 72 20 64 | 65 76 69 63 65 7d 0d 09 | color d|evice}..|
|000056d0| 09 70 6d 49 6e 68 69 62 | 69 74 47 34 09 09 09 09 |.pmInhib|itG4....|
|000056e0| 09 3d 20 24 30 34 30 30 | 3b 09 09 09 09 7b 69 6e |.= $0400|;....{in|
|000056f0| 68 69 62 69 74 20 6f 6e | 20 34 2d 62 69 74 20 67 |hibit on| 4-bit g|
|00005700| 72 61 79 2d 73 63 61 6c | 65 20 7d 0d 09 09 09 09 |ray-scal|e }.....|
|00005710| 09 09 09 09 09 09 09 7b | 20 64 65 76 69 63 65 7d |.......{| device}|
|00005720| 0d 09 09 70 6d 49 6e 68 | 69 62 69 74 43 34 09 09 |...pmInh|ibitC4..|
|00005730| 09 09 09 3d 20 24 30 38 | 30 30 3b 09 09 09 09 7b |...= $08|00;....{|
|00005740| 69 6e 68 69 62 69 74 20 | 6f 6e 20 34 2d 62 69 74 |inhibit |on 4-bit|
|00005750| 20 63 6f 6c 6f 72 20 64 | 65 76 69 63 65 7d 0d 09 | color d|evice}..|
|00005760| 09 70 6d 49 6e 68 69 62 | 69 74 47 38 09 09 09 09 |.pmInhib|itG8....|
|00005770| 09 3d 20 24 31 30 30 30 | 3b 09 09 09 09 7b 69 6e |.= $1000|;....{in|
|00005780| 68 69 62 69 74 20 6f 6e | 20 38 2d 62 69 74 20 67 |hibit on| 8-bit g|
|00005790| 72 61 79 2d 73 63 61 6c | 65 20 7d 0d 09 09 09 09 |ray-scal|e }.....|
|000057a0| 09 09 09 09 09 09 09 7b | 20 64 65 76 69 63 65 7d |.......{| device}|
|000057b0| 09 0d 09 09 70 6d 49 6e | 68 69 62 69 74 43 38 09 |....pmIn|hibitC8.|
|000057c0| 09 09 09 09 3d 20 24 32 | 30 30 30 3b 09 09 09 09 |....= $2|000;....|
|000057d0| 7b 69 6e 68 69 62 69 74 | 20 6f 6e 20 38 2d 62 69 |{inhibit| on 8-bi|
|000057e0| 74 20 63 6f 6c 6f 72 20 | 64 65 76 69 63 65 7d 0d |t color |device}.|
|000057f0| 0d 43 6f 75 72 74 65 6f | 75 73 20 43 6f 6c 6f 72 |.Courteo|us Color|
|00005800| 73 0d 0d 43 6f 75 72 74 | 65 6f 75 73 20 63 6f 6c |s..Court|eous col|
|00005810| 6f 72 73 20 6d 61 79 20 | 73 65 65 6d 20 73 6f 20 |ors may |seem so |
|00005820| 70 6f 6c 69 74 65 20 61 | 73 20 74 6f 20 62 65 20 |polite a|s to be |
|00005830| 75 73 65 6c 65 73 73 2c | 20 62 75 74 20 74 68 65 |useless,| but the|
|00005840| 79 20 63 61 6e 20 73 65 | 72 76 65 20 61 73 20 63 |y can se|rve as c|
|00005850| 6f 6e 76 65 6e 69 65 6e | 74 20 70 6c 61 63 65 68 |onvenien|t placeh|
|00005860| 6f 6c 64 65 72 73 2e 20 | 49 66 20 79 6f 75 72 20 |olders. |If your |
|00005870| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 75 73 65 73 |applicat|ion uses|
|00005880| 20 61 20 73 6d 61 6c 6c | 20 6e 75 6d 62 65 72 20 | a small| number |
|00005890| 6f 66 20 63 6f 6c 6f 72 | 73 2c 20 79 6f 75 20 63 |of color|s, you c|
|000058a0| 61 6e 20 6f 72 64 65 72 | 20 74 68 65 6d 20 69 6e |an order| them in|
|000058b0| 20 61 20 70 61 6c 65 74 | 74 65 20 61 63 63 6f 72 | a palet|te accor|
|000058c0| 64 69 6e 67 20 74 6f 20 | 79 6f 75 72 20 70 72 65 |ding to |your pre|
|000058d0| 66 65 72 65 6e 63 65 2c | 20 61 6e 64 20 64 65 73 |ference,| and des|
|000058e0| 69 67 6e 61 74 65 20 74 | 68 65 6d 20 61 73 20 63 |ignate t|hem as c|
|000058f0| 6f 75 72 74 65 6f 75 73 | 2e 20 0d 53 75 70 70 6f |ourteous|. .Suppo|
|00005900| 73 65 20 79 6f 75 20 68 | 61 76 65 20 61 6e 20 6f |se you h|ave an o|
|00005910| 70 65 6e 20 77 69 6e 64 | 6f 77 20 6e 61 6d 65 64 |pen wind|ow named|
|00005920| 20 6d 79 43 6f 6c 6f 72 | 57 69 6e 64 6f 77 20 74 | myColor|Window t|
|00005930| 68 61 74 20 68 61 73 20 | 61 20 70 61 6c 65 74 74 |hat has |a palett|
|00005940| 65 20 72 65 73 6f 75 72 | 63 65 20 63 6f 6e 73 69 |e resour|ce consi|
|00005950| 73 74 69 6e 67 20 6f 66 | 20 61 20 73 65 74 20 6f |sting of| a set o|
|00005960| 66 20 65 69 67 68 74 20 | 63 6f 6c 6f 72 73 3a 20 |f eight |colors: |
|00005970| 77 68 69 74 65 2c 20 62 | 6c 61 63 6b 2c 20 72 65 |white, b|lack, re|
|00005980| 64 2c 20 6f 72 61 6e 67 | 65 2c 20 79 65 6c 6c 6f |d, orang|e, yello|
|00005990| 77 2c 20 67 72 65 65 6e | 2c 20 62 6c 75 65 2c 20 |w, green|, blue, |
|000059a0| 61 6e 64 20 76 69 6f 6c | 65 74 2c 20 69 6e 20 74 |and viol|et, in t|
|000059b0| 68 61 74 20 6f 72 64 65 | 72 2c 20 65 61 63 68 20 |hat orde|r, each |
|000059c0| 77 69 74 68 20 69 74 73 | 20 63 6f 6c 6f 72 20 75 |with its| color u|
|000059d0| 73 61 67 65 20 73 70 65 | 63 69 66 69 65 64 20 61 |sage spe|cified a|
|000059e0| 73 20 63 6f 75 72 74 65 | 6f 75 73 2c 20 61 73 20 |s courte|ous, as |
|000059f0| 73 68 6f 77 6e 20 69 6e | 20 46 69 67 75 72 65 20 |shown in| Figure |
|00005a00| 31 2d 31 2e 20 0d 0d 46 | 69 67 75 72 65 20 31 2d |1-1. ..F|igure 1-|
|00005a10| 31 09 0d 41 20 63 6f 75 | 72 74 65 6f 75 73 20 70 |1..A cou|rteous p|
|00005a20| 61 6c 65 74 74 65 0d 0d | 54 68 65 20 66 6f 6c 6c |alette..|The foll|
|00005a30| 6f 77 69 6e 67 20 65 78 | 61 6d 70 6c 65 20 70 61 |owing ex|ample pa|
|00005a40| 69 6e 74 73 20 74 68 65 | 20 72 65 63 74 61 6e 67 |ints the| rectang|
|00005a50| 6c 65 20 6d 79 52 65 63 | 74 20 69 6e 20 79 65 6c |le myRec|t in yel|
|00005a60| 6c 6f 77 20 28 70 61 6c | 65 74 74 65 20 65 6e 74 |low (pal|ette ent|
|00005a70| 72 79 20 34 2c 20 77 68 | 65 72 65 20 77 68 69 74 |ry 4, wh|ere whit|
|00005a80| 65 20 69 73 20 30 29 2e | 0d 53 65 74 50 6f 72 74 |e is 0).|.SetPort|
|00005a90| 20 28 6d 79 43 6f 6c 6f | 72 57 69 6e 64 6f 77 29 | (myColo|rWindow)|
|00005aa0| 3b 0d 50 6d 46 6f 72 65 | 43 6f 6c 6f 72 20 28 34 |;.PmFore|Color (4|
|00005ab0| 29 3b 0d 50 61 69 6e 74 | 52 65 63 74 20 28 6d 79 |);.Paint|Rect (my|
|00005ac0| 52 65 63 74 29 3b 0d 54 | 68 69 73 20 69 73 20 65 |Rect);.T|his is e|
|00005ad0| 78 61 63 74 6c 79 20 61 | 6e 61 6c 6f 67 6f 75 73 |xactly a|nalogous|
|00005ae0| 20 74 6f 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | to the |followin|
|00005af0| 67 20 73 65 71 75 65 6e | 63 65 20 6f 66 20 43 6f |g sequen|ce of Co|
|00005b00| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 20 72 6f |lor Quic|kDraw ro|
|00005b10| 75 74 69 6e 65 73 2c 20 | 77 68 65 72 65 20 79 65 |utines, |where ye|
|00005b20| 6c 6c 6f 77 52 47 42 20 | 69 73 20 6f 66 20 74 79 |llowRGB |is of ty|
|00005b30| 70 65 20 43 6f 6c 6f 72 | 53 70 65 63 3a 20 0d 79 |pe Color|Spec: .y|
|00005b40| 65 6c 6c 6f 77 52 47 42 | 2e 72 65 64 20 3a 3d 20 |ellowRGB|.red := |
|00005b50| 24 46 46 46 46 3b 0d 79 | 65 6c 6c 6f 77 52 47 42 |$FFFF;.y|ellowRGB|
|00005b60| 2e 67 72 65 65 6e 20 3a | 3d 20 24 46 46 46 46 3b |.green :|= $FFFF;|
|00005b70| 0d 79 65 6c 6c 6f 77 52 | 47 42 2e 62 6c 75 65 20 |.yellowR|GB.blue |
|00005b80| 3a 3d 20 24 30 30 30 30 | 3b 0d 0d 53 65 74 50 6f |:= $0000|;..SetPo|
|00005b90| 72 74 20 28 6d 79 43 6f | 6c 6f 72 57 69 6e 64 6f |rt (myCo|lorWindo|
|00005ba0| 77 29 3b 0d 52 47 42 46 | 6f 72 65 43 6f 6c 6f 72 |w);.RGBF|oreColor|
|00005bb0| 20 28 79 65 6c 6c 6f 77 | 52 47 42 29 3b 0d 50 61 | (yellow|RGB);.Pa|
|00005bc0| 69 6e 74 52 65 63 74 20 | 28 6d 79 52 65 63 74 29 |intRect |(myRect)|
|00005bd0| 3b 0d 43 6f 6c 6f 72 73 | 20 77 69 74 68 20 73 70 |;.Colors| with sp|
|00005be0| 65 63 69 66 69 65 64 20 | 75 73 61 67 65 20 63 61 |ecified |usage ca|
|00005bf0| 74 65 67 6f 72 69 65 73 | 20 74 68 61 74 20 63 61 |tegories| that ca|
|00005c00| 6e d5 74 20 62 65 20 73 | 61 74 69 73 66 69 65 64 |n.t be s|atisfied|
|00005c10| 20 62 79 20 74 68 65 20 | 50 61 6c 65 74 74 65 20 | by the |Palette |
|00005c20| 4d 61 6e 61 67 65 72 20 | 64 65 66 61 75 6c 74 20 |Manager |default |
|00005c30| 74 6f 20 63 6f 75 72 74 | 65 6f 75 73 20 63 6f 6c |to court|eous col|
|00005c40| 6f 72 73 2e 20 54 68 69 | 73 20 6f 63 63 75 72 73 |ors. Thi|s occurs|
|00005c50| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 77 |, for ex|ample, w|
|00005c60| 68 65 6e 20 64 72 61 77 | 69 6e 67 20 74 6f 20 61 |hen draw|ing to a|
|00005c70| 20 64 69 72 65 63 74 20 | 64 65 76 69 63 65 20 6f | direct |device o|
|00005c80| 72 20 6f 6e 65 20 77 69 | 74 68 20 61 20 66 69 78 |r one wi|th a fix|
|00005c90| 65 64 20 64 65 76 69 63 | 65 20 63 6f 6c 6f 72 20 |ed devic|e color |
|00005ca0| 74 61 62 6c 65 2e 0d 0d | 54 6f 6c 65 72 61 6e 74 |table...|Tolerant|
|00005cb0| 20 43 6f 6c 6f 72 73 0d | 0d 54 6f 6c 65 72 61 6e | Colors.|.Toleran|
|00005cc0| 74 20 63 6f 6c 6f 72 73 | 20 61 6c 6c 6f 77 20 79 |t colors| allow y|
|00005cd0| 6f 75 20 74 6f 20 63 68 | 61 6e 67 65 20 74 68 65 |ou to ch|ange the|
|00005ce0| 20 63 75 72 72 65 6e 74 | 20 63 6f 6c 6f 72 20 65 | current| color e|
|00005cf0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 69 66 20 74 68 |nvironme|nt if th|
|00005d00| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 63 6f 6c 6f |e availa|ble colo|
|00005d10| 72 73 20 61 72 65 20 6e | 6f 74 20 73 75 66 66 69 |rs are n|ot suffi|
|00005d20| 63 69 65 6e 74 6c 79 20 | 63 6c 6f 73 65 20 74 6f |ciently |close to|
|00005d30| 20 74 68 6f 73 65 20 79 | 6f 75 72 20 61 70 70 6c | those y|our appl|
|00005d40| 69 63 61 74 69 6f 6e 20 | 6e 65 65 64 73 2e 20 57 |ication |needs. W|
|00005d50| 68 65 6e 20 79 6f 75 72 | 20 77 69 6e 64 6f 77 20 |hen your| window |
|00005d60| 62 65 63 6f 6d 65 73 20 | 74 68 65 20 66 72 6f 6e |becomes |the fron|
|00005d70| 74 6d 6f 73 74 20 77 69 | 6e 64 6f 77 20 6f 6e 20 |tmost wi|ndow on |
|00005d80| 61 20 64 65 76 69 63 65 | 2c 20 69 74 73 20 70 61 |a device|, its pa|
|00005d90| 6c 65 74 74 65 d5 73 20 | 63 6f 6c 6f 72 73 20 61 |lette.s |colors a|
|00005da0| 72 65 20 67 69 76 65 6e | 20 70 72 65 66 65 72 65 |re given| prefere|
|00005db0| 6e 63 65 2e 20 45 61 63 | 68 20 74 6f 6c 65 72 61 |nce. Eac|h tolera|
|00005dc0| 6e 74 20 63 6f 6c 6f 72 | 20 69 73 20 63 6f 6d 70 |nt color| is comp|
|00005dd0| 61 72 65 64 20 74 6f 20 | 74 68 65 20 62 65 73 74 |ared to |the best|
|00005de0| 20 6d 61 74 63 68 20 61 | 76 61 69 6c 61 62 6c 65 | match a|vailable|
|00005df0| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00005e00| 63 6f 6c 6f 72 20 65 6e | 76 69 72 6f 6e 6d 65 6e |color en|vironmen|
|00005e10| 74 2e 20 28 49 6e 20 61 | 20 6d 75 6c 74 69 73 63 |t. (In a| multisc|
|00005e20| 72 65 65 6e 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |reen env|ironment|
|00005e30| 20 74 68 69 73 20 63 6f | 6d 70 61 72 69 73 6f 6e | this co|mparison|
|00005e40| 20 69 73 20 64 6f 6e 65 | 20 66 6f 72 20 65 61 63 | is done| for eac|
|00005e50| 68 20 64 65 76 69 63 65 | 20 6f 6e 20 77 68 69 63 |h device| on whic|
|00005e60| 68 20 74 68 65 20 77 69 | 6e 64 6f 77 20 69 73 20 |h the wi|ndow is |
|00005e70| 64 72 61 77 6e 2e 29 20 | 57 68 65 6e 20 74 68 65 |drawn.) |When the|
|00005e80| 20 64 69 66 66 65 72 65 | 6e 63 65 20 62 65 74 77 | differe|nce betw|
|00005e90| 65 65 6e 20 79 6f 75 72 | 20 63 6f 6c 6f 72 20 61 |een your| color a|
|00005ea0| 6e 64 20 74 68 65 20 62 | 65 73 74 20 61 76 61 69 |nd the b|est avai|
|00005eb0| 6c 61 62 6c 65 20 6d 61 | 74 63 68 20 69 73 20 67 |lable ma|tch is g|
|00005ec0| 72 65 61 74 65 72 20 74 | 68 61 6e 20 74 68 65 20 |reater t|han the |
|00005ed0| 74 6f 6c 65 72 61 6e 63 | 65 20 79 6f 75 20 73 70 |toleranc|e you sp|
|00005ee0| 65 63 69 66 79 2c 20 74 | 68 65 20 50 61 6c 65 74 |ecify, t|he Palet|
|00005ef0| 74 65 20 4d 61 6e 61 67 | 65 72 20 6c 6f 61 64 73 |te Manag|er loads|
|00005f00| 20 61 6e 20 65 78 61 63 | 74 20 6d 61 74 63 68 20 | an exac|t match |
|00005f10| 69 6e 74 6f 20 74 68 65 | 20 64 65 76 69 63 65 20 |into the| device |
|00005f20| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 2e 20 0d 54 68 |color ta|ble. .Th|
|00005f30| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|00005f40| 72 20 63 6f 6d 70 61 72 | 65 73 20 74 68 65 20 74 |r compar|es the t|
|00005f50| 6f 6c 65 72 61 6e 63 65 | 20 76 61 6c 75 65 20 61 |olerance| value a|
|00005f60| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 65 |ssociate|d with e|
|00005f70| 61 63 68 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |ach pale|tte entr|
|00005f80| 79 20 74 6f 20 61 20 6d | 65 61 73 75 72 65 20 6f |y to a m|easure o|
|00005f90| 66 20 74 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |f the di|fference|
|00005fa0| 20 62 65 74 77 65 65 6e | 20 74 77 6f 20 52 47 42 | between| two RGB|
|00005fb0| 20 63 6f 6c 6f 72 20 76 | 61 6c 75 65 73 2e 20 54 | color v|alues. T|
|00005fc0| 68 69 73 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |his diff|erence i|
|00005fd0| 73 20 61 6e 20 61 70 70 | 72 6f 78 69 6d 61 74 69 |s an app|roximati|
|00005fe0| 6f 6e 20 6f 66 20 74 68 | 65 20 64 69 73 74 61 6e |on of th|e distan|
|00005ff0| 63 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 74 |ce betwe|en the t|
|00006000| 77 6f 20 70 6f 69 6e 74 | 73 20 61 73 20 6d 65 61 |wo point|s as mea|
|00006010| 73 75 72 65 64 20 69 6e | 20 61 20 43 61 72 74 65 |sured in| a Carte|
|00006020| 73 69 61 6e 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |sian coo|rdinate |
|00006030| 73 79 73 74 65 6d 20 77 | 68 65 72 65 20 74 68 65 |system w|here the|
|00006040| 20 61 78 65 73 20 61 72 | 65 20 74 68 65 20 75 6e | axes ar|e the un|
|00006050| 73 69 67 6e 65 64 20 72 | 65 64 2c 20 67 72 65 65 |signed r|ed, gree|
|00006060| 6e 2c 20 61 6e 64 20 62 | 6c 75 65 20 76 61 6c 75 |n, and b|lue valu|
|00006070| 65 73 2e 20 54 68 65 20 | 64 69 73 74 61 6e 63 65 |es. The |distance|
|00006080| 20 66 6f 72 6d 75 6c 61 | 20 75 73 65 64 20 69 73 | formula| used is|
|00006090| 20 0d c6 20 52 47 42 20 | 3d 20 6d 61 78 69 6d 75 | .. RGB |= maximu|
|000060a0| 6d 20 6f 66 20 28 61 62 | 73 28 52 65 64 31 20 d0 |m of (ab|s(Red1 .|
|000060b0| 20 52 65 64 32 29 2c 20 | 61 62 73 28 47 72 65 65 | Red2), |abs(Gree|
|000060c0| 6e 31 20 d0 20 47 72 65 | 65 6e 32 29 2c 20 61 62 |n1 . Gre|en2), ab|
|000060d0| 73 28 42 6c 75 65 31 20 | d0 20 42 6c 75 65 32 29 |s(Blue1 |. Blue2)|
|000060e0| 29 0d 41 20 74 6f 6c 65 | 72 61 6e 63 65 20 76 61 |).A tole|rance va|
|000060f0| 6c 75 65 20 6f 66 20 24 | 30 30 30 30 20 6d 65 61 |lue of $|0000 mea|
|00006100| 6e 73 20 74 68 61 74 20 | 6f 6e 6c 79 20 61 6e 20 |ns that |only an |
|00006110| 65 78 61 63 74 20 6d 61 | 74 63 68 20 69 73 20 61 |exact ma|tch is a|
|00006120| 63 63 65 70 74 61 62 6c | 65 2e 20 28 41 6e 79 20 |cceptabl|e. (Any |
|00006130| 76 61 6c 75 65 20 6f 66 | 20 24 30 78 78 78 20 6f |value of| $0xxx o|
|00006140| 74 68 65 72 20 74 68 61 | 6e 20 24 30 30 30 30 20 |ther tha|n $0000 |
|00006150| 69 73 20 72 65 73 65 72 | 76 65 64 20 61 6e 64 20 |is reser|ved and |
|00006160| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 75 73 |should n|ot be us|
|00006170| 65 64 20 69 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ed in ap|plicatio|
|00006180| 6e 73 2e 29 20 41 20 76 | 61 6c 75 65 20 6f 66 20 |ns.) A v|alue of |
|00006190| 24 35 30 30 30 20 69 73 | 20 67 65 6e 65 72 61 6c |$5000 is| general|
|000061a0| 6c 79 20 73 75 66 66 69 | 63 69 65 6e 74 20 74 6f |ly suffi|cient to|
|000061b0| 20 61 6c 6c 6f 77 20 6d | 61 74 63 68 69 6e 67 20 | allow m|atching |
|000061c0| 77 69 74 68 6f 75 74 20 | 75 70 64 61 74 65 73 20 |without |updates |
|000061d0| 69 6e 20 77 65 6c 6c 2d | 62 61 6c 61 6e 63 65 64 |in well-|balanced|
|000061e0| 20 63 6f 6c 6f 72 20 65 | 6e 76 69 72 6f 6e 6d 65 | color e|nvironme|
|000061f0| 6e 74 73 2c 20 73 75 63 | 68 20 61 73 20 74 68 6f |nts, suc|h as tho|
|00006200| 73 65 20 70 72 6f 76 69 | 64 65 64 20 62 79 20 74 |se provi|ded by t|
|00006210| 68 65 20 64 65 66 61 75 | 6c 74 20 70 61 6c 65 74 |he defau|lt palet|
|00006220| 74 65 73 2e 20 0d 49 66 | 20 79 6f 75 72 20 70 61 |tes. .If| your pa|
|00006230| 6c 65 74 74 65 20 72 65 | 71 75 69 72 65 73 20 6d |lette re|quires m|
|00006240| 6f 72 65 20 63 6f 6c 6f | 72 73 20 74 68 61 6e 20 |ore colo|rs than |
|00006250| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 75 6e |the numb|er of un|
|00006260| 72 65 73 65 72 76 65 64 | 20 74 61 62 6c 65 20 69 |reserved| table i|
|00006270| 6e 64 65 78 65 73 2c 20 | 74 68 65 20 50 61 6c 65 |ndexes, |the Pale|
|00006280| 74 74 65 20 4d 61 6e 61 | 67 65 72 20 63 68 65 63 |tte Mana|ger chec|
|00006290| 6b 73 20 74 6f 20 73 65 | 65 20 69 66 20 73 6f 6d |ks to se|e if som|
|000062a0| 65 20 6f 74 68 65 72 20 | 70 61 6c 65 74 74 65 20 |e other |palette |
|000062b0| 68 61 73 20 72 65 73 65 | 72 76 65 64 20 69 6e 64 |has rese|rved ind|
|000062c0| 65 78 65 73 20 66 6f 72 | 20 61 6e 69 6d 61 74 69 |exes for| animati|
|000062d0| 6f 6e 2e 20 49 66 20 73 | 6f 2c 20 69 74 20 63 61 |on. If s|o, it ca|
|000062e0| 6e 63 65 6c 73 20 74 68 | 65 69 72 20 72 65 73 65 |ncels th|eir rese|
|000062f0| 72 76 61 74 69 6f 6e 20 | 61 6e 64 20 6d 61 6b 65 |rvation |and make|
|00006300| 73 20 74 68 65 69 72 20 | 69 6e 64 65 78 65 73 20 |s their |indexes |
|00006310| 61 76 61 69 6c 61 62 6c | 65 20 66 6f 72 20 79 6f |availabl|e for yo|
|00006320| 75 72 20 70 61 6c 65 74 | 74 65 2e 20 0d 49 66 20 |ur palet|te. .If |
|00006330| 79 6f 75 20 61 73 6b 20 | 66 6f 72 20 6d 6f 72 65 |you ask |for more|
|00006340| 20 63 6f 6c 6f 72 73 20 | 74 68 61 6e 20 61 72 65 | colors |than are|
|00006350| 20 61 76 61 69 6c 61 62 | 6c 65 20 6f 6e 20 61 20 | availab|le on a |
|00006360| 64 65 76 69 63 65 2c 20 | 74 68 65 20 50 61 6c 65 |device, |the Pale|
|00006370| 74 74 65 20 4d 61 6e 61 | 67 65 72 20 63 61 6e 6e |tte Mana|ger cann|
|00006380| 6f 74 20 68 6f 6e 6f 72 | 20 79 6f 75 72 20 72 65 |ot honor| your re|
|00006390| 71 75 65 73 74 2e 20 43 | 6f 6c 6f 72 20 72 65 71 |quest. C|olor req|
|000063a0| 75 65 73 74 73 20 74 68 | 61 74 20 63 61 6e d5 74 |uests th|at can.t|
|000063b0| 20 62 65 20 6d 65 74 20 | 64 65 66 61 75 6c 74 20 | be met |default |
|000063c0| 74 6f 20 63 6f 75 72 74 | 65 6f 75 73 20 63 6f 6c |to court|eous col|
|000063d0| 6f 72 73 2c 20 61 6e 64 | 20 74 68 65 20 43 6f 6c |ors, and| the Col|
|000063e0| 6f 72 20 4d 61 6e 61 67 | 65 72 20 73 65 6c 65 63 |or Manag|er selec|
|000063f0| 74 73 20 74 68 65 20 62 | 65 73 74 20 63 6f 6c 6f |ts the b|est colo|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.